Menu

Use of explicit keyword

Developer
mck9
2005-10-26
2013-05-20
  • mck9

    mck9 - 2005-10-26

    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?

     
    • Lee Thomason

      Lee Thomason - 2005-10-26

      That's a good question...it just went away.

      Bug? Certainly odd.

      lee

       

Log in to post a comment.

MongoDB Logo MongoDB