I\'ve often seen that people create objects in C++ using
Thing myThing(\"asdf\");
Instead of this:
Thing myThing = Thing(\"
Ideally, a compiler would optimize the second, but it's not required. The first is the best way. However, it's pretty critical to understand the distinction between stack and heap in C++, sine you must manage your own heap memory.