diff --git a/include/yaml-cpp/value/detail/node_data.h b/include/yaml-cpp/value/detail/node_data.h index 9cf7e28..a72ff55 100644 --- a/include/yaml-cpp/value/detail/node_data.h +++ b/include/yaml-cpp/value/detail/node_data.h @@ -16,7 +16,7 @@ namespace YAML class node_data { public: - explicit node_data(const std::string& data); + explicit node_data(const std::string& data) {} }; } } diff --git a/include/yaml-cpp/value/impl.h b/include/yaml-cpp/value/impl.h index d6046d3..960c53b 100644 --- a/include/yaml-cpp/value/impl.h +++ b/include/yaml-cpp/value/impl.h @@ -61,15 +61,13 @@ namespace YAML m_pNode->set_scalar(rhs); } - template<> - inline void Value::Assign(const char * const & rhs) + inline void Value::Assign(const char *rhs) { EnsureNodeExists(); m_pNode->set_scalar(rhs); } - template<> - inline void Value::Assign(char * const & rhs) + inline void Value::Assign(char *rhs) { EnsureNodeExists(); m_pNode->set_scalar(rhs); diff --git a/include/yaml-cpp/value/value.h b/include/yaml-cpp/value/value.h index 5e61755..a054fd4 100644 --- a/include/yaml-cpp/value/value.h +++ b/include/yaml-cpp/value/value.h @@ -61,6 +61,8 @@ namespace YAML private: template void Assign(const T& rhs); + void Assign(const char *rhs); + void Assign(char *rhs); void EnsureNodeExists(); void AssignData(const Value& rhs); diff --git a/util/value.cpp b/util/value.cpp index e7038a1..0bc8b17 100644 --- a/util/value.cpp +++ b/util/value.cpp @@ -3,6 +3,7 @@ int main() { YAML::Value value; + value = "Hello"; return 0; }