From 14c2e54c79ec4cd981e6263e77d87e60abc6332b Mon Sep 17 00:00:00 2001 From: Jayden Date: Thu, 20 Oct 2022 10:23:14 +0800 Subject: [PATCH] add a second default template parameter for YAML::convert so users can use SFINAE --- include/yaml-cpp/node/convert.h | 2 +- include/yaml-cpp/node/node.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/yaml-cpp/node/convert.h b/include/yaml-cpp/node/convert.h index 292c5d3..f60bdd4 100644 --- a/include/yaml-cpp/node/convert.h +++ b/include/yaml-cpp/node/convert.h @@ -29,7 +29,7 @@ namespace YAML { class Binary; struct _Null; -template +template struct convert; } // namespace YAML diff --git a/include/yaml-cpp/node/node.h b/include/yaml-cpp/node/node.h index c9e9a0a..e6997c5 100644 --- a/include/yaml-cpp/node/node.h +++ b/include/yaml-cpp/node/node.h @@ -141,8 +141,8 @@ YAML_CPP_API bool operator==(const Node& lhs, const Node& rhs); YAML_CPP_API Node Clone(const Node& node); -template +template struct convert; -} +} // namespace YAML #endif // NODE_NODE_H_62B23520_7C8E_11DE_8A39_0800200C9A66