In version 2.3.4, tinystr.h used the "explicit" keyword on two of the constructors of TiXmlString. One was the constructor that received a const char * parameter, where the explicit keyword was sensible. The other was the copy constructor, where the explicit keyword was not sensible, because implicit conversions don't occur from a class to itself.
In version 2.4.0, however, the explicit keyword has been removed from both constructors.
I vaguely remember some discussion in this forum about adding "explicit," but I don't remember any discussion about removing it. Did it create problems?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In version 2.3.4, tinystr.h used the "explicit" keyword on two of the constructors of TiXmlString. One was the constructor that received a const char * parameter, where the explicit keyword was sensible. The other was the copy constructor, where the explicit keyword was not sensible, because implicit conversions don't occur from a class to itself.
In version 2.4.0, however, the explicit keyword has been removed from both constructors.
I vaguely remember some discussion in this forum about adding "explicit," but I don't remember any discussion about removing it. Did it create problems?
That's a good question...it just went away.
Bug? Certainly odd.
lee