fix template problem

refactor-result-recursion
Lars Rohwedder 7 years ago
parent b2ce4ac2a1
commit ca54f8f3a1

@ -248,7 +248,8 @@ namespace json_spirit
//
// implementation
std::string simple_write(const Value&);
template<class Config>
std::string simple_write(const Value_impl<Config>&);
inline bool operator==( const Null&, const Null& )
{

@ -95,7 +95,19 @@ using namespace json_spirit;
}
#endif
std::string json_spirit::simple_write(const Value& v)
namespace json_spirit
{
template<>
std::string simple_write(const Value& v)
{
return json_spirit::write(v);
}
template<>
std::string simple_write(const mValue& v)
{
return json_spirit::write(v);
}
}

Loading…
Cancel
Save