"...stable_diffusion/test_stable_diffusion_adapter.py" did not exist on "39299546134b545c1b78b0937147f85aed8fbe4d"
Commit 00e4a56d authored by Jesse Beder's avatar Jesse Beder
Browse files

Compiles/links assignment to string

parent 1e687704
...@@ -16,7 +16,7 @@ namespace YAML ...@@ -16,7 +16,7 @@ namespace YAML
class node_data class node_data
{ {
public: public:
explicit node_data(const std::string& data); explicit node_data(const std::string& data) {}
}; };
} }
} }
......
...@@ -61,15 +61,13 @@ namespace YAML ...@@ -61,15 +61,13 @@ namespace YAML
m_pNode->set_scalar(rhs); m_pNode->set_scalar(rhs);
} }
template<> inline void Value::Assign(const char *rhs)
inline void Value::Assign(const char * const & rhs)
{ {
EnsureNodeExists(); EnsureNodeExists();
m_pNode->set_scalar(rhs); m_pNode->set_scalar(rhs);
} }
template<> inline void Value::Assign(char *rhs)
inline void Value::Assign(char * const & rhs)
{ {
EnsureNodeExists(); EnsureNodeExists();
m_pNode->set_scalar(rhs); m_pNode->set_scalar(rhs);
......
...@@ -61,6 +61,8 @@ namespace YAML ...@@ -61,6 +61,8 @@ namespace YAML
private: private:
template<typename T> void Assign(const T& rhs); template<typename T> void Assign(const T& rhs);
void Assign(const char *rhs);
void Assign(char *rhs);
void EnsureNodeExists(); void EnsureNodeExists();
void AssignData(const Value& rhs); void AssignData(const Value& rhs);
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
int main() int main()
{ {
YAML::Value value; YAML::Value value;
value = "Hello";
return 0; return 0;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment