From 5f9e4c083f26b4408e06a057a13b15dab9a90e24 Mon Sep 17 00:00:00 2001 From: Dan Dees Date: Mon, 25 Oct 2021 15:35:11 -0400 Subject: [PATCH] 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' --- include/yaml-cpp/node/detail/node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/yaml-cpp/node/detail/node.h b/include/yaml-cpp/node/detail/node.h index b881c2c..acf60ff 100644 --- a/include/yaml-cpp/node/detail/node.h +++ b/include/yaml-cpp/node/detail/node.h @@ -169,7 +169,7 @@ class node { using nodes = std::set; nodes m_dependencies; size_t m_index; - static std::atomic m_amount; + static YAML_CPP_API std::atomic m_amount; }; } // namespace detail } // namespace YAML