I\'ve often seen that people create objects in C++ using
Thing myThing(\"asdf\");
Instead of this:
Thing myThing = Thing(\"
Both lines are in fact correct but do subtly different things.
The first line creates a new object on the stack by calling a constructor of the format Thing(const char*).
The second one is a bit more complex. It essentially does the following
Thing using the constructor Thing(const char*)Thing using the constructor Thing(const Thing&)~Thing() on the object created in step #1