redef with diff storage class in VS

\yaml\src\node_data.cpp(16): error C2370: 'm_amount': redefinition; different storage class
\yaml\include\yaml-cpp/node/detail/node.h(172): note: see declaration of 'm_amount'
This commit is contained in:
Dan Dees 2021-10-25 15:35:11 -04:00
parent 2f8997565b
commit 5f9e4c083f

View File

@ -169,7 +169,7 @@ class node {
using nodes = std::set<node*, less>;
nodes m_dependencies;
size_t m_index;
static std::atomic<size_t> m_amount;
static YAML_CPP_API std::atomic<size_t> m_amount;
};
} // namespace detail
} // namespace YAML