Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
C++ and Beyond 2012: Andrei Alexandrescu - Systematic Error Handling in C++
Dec 10, 2012 at 10:34 PM@Gary:
No, it is in union space. rhs.spam is still an exception_ptr at this point. It is until the destructor is called. t is also one.
Writing over what is currently there is the opposite of "doesn't matter". It's undefined behavior. That always matters.
You can't know that, period.
C++ and Beyond 2012: Scott Meyers - Universal References in C++11
Oct 12, 2012 at 7:38 AMYou can ignore rvalue references as well, and your code will be as good as it was two years ago. Better, infact. Especially if you use the standard library.
If you tend to write classes which just use default copy semantics, and rely on internal, well written members (from the standard library, for example) to copy themselves, then your classes will automatically have correct move semantics. They will be, infact, better than they were before this feature existed, through no effort of your own. This is, in my opinion, how almost all classes should be written anyway.
If, however, you tend to write classes with specialized copy semantics, then your classes will be no worse than they were two years ago, and you can learn to use rvalue references at your own pace, when you feel like you want to supercharge your code.
C++ and Beyond 2012: Scott Meyers - Universal References in C++11
Oct 11, 2012 at 1:45 PM@Vincent: You have another option actually. Write one constructor, taking all of your parameters by value, then move them where they need to be. This may result in additional moves, but never additional copies (unless there is no move constructor, which is not the case for strings).
Person(string f, string m, string l, string a) :firstName(move(f)), middleName(move(m)), lastName(move(l)), address(move(a)) {}C++ and Beyond 2012: Scott Meyers - Universal References in C++11
Oct 10, 2012 at 2:37 PMThe quality of information in this talk was almost at STL's level. Impressive.
GoingNative 8: Introducing Casablanca - A Modern C++ API for Connected Computing
May 03, 2012 at 6:30 AM@Int64: Sounds like it's modeled similarly to std::map, where operator[] inserts an element if one is not there, and so cannot be const. Does it have an at() function? Or a find() function? I can't check it myself at this time.
And speaking of that @Devs, is there any way for us to view the code online or off without having to run a setup program that only works on Windows? Or at least a way to see the full interface even if we can't see the implementation?
Herb Sutter: (Not Your Father’s) C++
Apr 14, 2012 at 8:49 AM@Luna: Could you please elaborate on why you believe it would be a hazard?
Herb Sutter: (Not Your Father’s) C++
Apr 13, 2012 at 5:22 PMWhat about this idea. Have a separate namespace within or beside std, call it safestd. In there have safe substitutes for various functionality in the standard. Then you could choose between safe and efficient selectively with a typedef or a `using` statement.