Compiles/links assignment to string

This commit is contained in:
Jesse Beder
2011-09-07 00:20:23 -05:00
parent 1e6877043e
commit 00e4a56d15
4 changed files with 6 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ namespace YAML
class node_data
{
public:
explicit node_data(const std::string& data);
explicit node_data(const std::string& data) {}
};
}
}

View File

@@ -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);

View File

@@ -61,6 +61,8 @@ namespace YAML
private:
template<typename T> void Assign(const T& rhs);
void Assign(const char *rhs);
void Assign(char *rhs);
void EnsureNodeExists();
void AssignData(const Value& rhs);

View File

@@ -3,6 +3,7 @@
int main()
{
YAML::Value value;
value = "Hello";
return 0;
}