[PATCH] Export YAML::detail::node::m_amount
authorPino Toscano <toscano.pino@tiscali.it>
Sun, 18 Apr 2021 08:29:59 +0000 (10:29 +0200)
committerGianfranco Costamagna <locutusofborg@debian.org>
Sat, 13 Nov 2021 20:48:59 +0000 (20:48 +0000)
commit191ebeddbf36e5eb32ee7a88454a7fbda694cbe4
treeebcae41d1f2267239365ab089dc0c7c327f8a79b
parenta845e716e9c19a821b2ca6adea0cd52e82c88b5b
[PATCH] Export YAML::detail::node::m_amount

The internal header node/detail/node.h is included by public headers;
YAML::detail::node is implemented in the header itself, and thus it gets
inlined... except for its static m_amount class member, which is
instantiated in the library only. Right now all the symbols of yaml-cpp
are exported (nothing is hidden), so the linker will find node::m_amount
in the yaml-cpp library.

As solution/workaround, explicitly export YAML::detail::node::m_amount.

Gbp-Pq: Name export-m_amount.patch
src/node_data.cpp