Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki Markup
It is often recommended that class objects be initialized using direct constructors rather than assignment. \[[Meyers 01|AA. C++ References#Meyers 01]\]  Direct constructors avoids construction, copying, and destruction of a temporary copy of the object. To wit, object should be constructed this way:

...

  • Wiki Markup
    \[[Meyers 01|AA. C++ References#Meyers 01]\] Item 6: Be alert for C+\+'s most vexing parse.