Skip to content
Snippets Groups Projects
Commit 5258b1c8 authored by Frank Gaede's avatar Frank Gaede
Browse files

- fixed bug seen with clang commented out

     Property& operator=(const std::string& val);
   as this is in conflict with explicit instantiation (using string) of:
     template <typename TYPE> Property& operator=(const TYPE& val);
  
   -> Need checking with other compilers !!
 
parent 3767b8c0
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ namespace DD4hep { ...@@ -116,7 +116,7 @@ namespace DD4hep {
/// Assignment operator / set new balue /// Assignment operator / set new balue
Property& operator=(const char* val); Property& operator=(const char* val);
/// Assignment operator / set new balue /// Assignment operator / set new balue
Property& operator=(const std::string& val); //Property& operator=(const std::string& val);
/// Assignment operator / set new balue /// Assignment operator / set new balue
template <typename TYPE> Property& operator=(const TYPE& val); template <typename TYPE> Property& operator=(const TYPE& val);
/// Retrieve value /// Retrieve value
......
...@@ -241,10 +241,10 @@ Property& Property::str(const std::string& input) { ...@@ -241,10 +241,10 @@ Property& Property::str(const std::string& input) {
} }
/// Assignment operator / set new balue /// Assignment operator / set new balue
Property& Property::operator=(const string& val) { //Property& Property::operator=(const string& val) {
this->set<string>(val); // this->set<string>(val);
return *this; // return *this;
} //}
/// Assignment operator / set new balue /// Assignment operator / set new balue
Property& Property::operator=(const char* val) { Property& Property::operator=(const char* val) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment