News for hackers. Stuff that matters.

meetingcpp

Re:Where will Evolution lead C++17? on Saturday November 08, 2014 @01:28PM (#8577709)
2008? There never was a C++08...

Last Standard was 2003 before C++11.

Re:C++ and zombies: a moving question on Friday October 31, 2014 @05:39PM (#8541252)
Well, stay away from r-value references[1], and trust the defaults for move will make your live a lot easier.

To Quote Eric Niebler: "I want you to fear r-value references, like one could fear god" (last year at Meeting C++)

[1]except things like forwarding in templates, but thats fairly easy.

Re:C++ and zombies: a moving question on Friday October 31, 2014 @04:01PM (#8540811)
Well, of course accessing the value of fh after foo would be fatal. But how would you then sort a container of moveable-only objects?

An object should be accessible for reassigning a value after its move, as its often needed for algorithms, thats exactly why the C++ Standard mandates this. Move does really only make sense if the class holds a moveable allocation, such as a container, array etc., which makes copying expensive.

Re:C++ and zombies: a moving question on Friday October 31, 2014 @03:58PM (#8540791)
cpp-next seems to be lost, at least for the web, but you still can access its content at the webarchive.org.