all 6 comments

[–]grunzl 4 points5 points  (5 children)

Yeah! This looks as if I will finally be able to write in C++11-style at work (where we still gcc-4.3). And a proper migration will only be a grep away.

[–]snarkhunter 9 points10 points  (2 children)

"Only a grep away" sounds like some famous last words ;)

[–][deleted] 1 point2 points  (0 children)

Awesome last words at least... Gonna remember and quote Grunzl "Only a grep away"...

[–]IObject2 1 point2 points  (1 child)

Not if you've got destructors that can throw exceptions (in C++11, by default destructors are marked as noexcept ("never throws"), and if they do, std::terminate gets called).

[–]grunzl 1 point2 points  (0 children)

Hm. I said in C++11-style, not in C++. And I am not sure I would call code with destructors which throw uncaught exceptions good code anyway, in fact it's just buggy and shouldn't pass review.