mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
18 lines
292 B
C++
18 lines
292 B
C++
#include "yaml-cpp/value.h"
|
|
|
|
namespace YAML
|
|
{
|
|
template<>
|
|
Value convert(const std::string& rhs) {
|
|
return Value(rhs);
|
|
}
|
|
|
|
template<>
|
|
bool convert(const Value& value, std::string& rhs) {
|
|
if(value.Type() != ValueType::Scalar)
|
|
return false;
|
|
rhs = value.scalar();
|
|
return true;
|
|
}
|
|
}
|