• Recent C++ features

    From Nightfox to All on Fri Aug 25 15:26:00 2017
    C++11 added some interesting features (such as lambda/anonymous functions, a multi-threading library, regular expressions, and other changes. I'm curious if anyone here has used the newer C++ features and found them useful in a project? I have no doubt the new features are useful - I'm just curious what others think.

    One thing I'm not so sure about is the 'auto' variable type in C++11. One thing I like about C++ is that it's a strongly-typed language, so the variable types are always clear. In C++11, you can define a variable as 'auto' and the compiler will deduce the type of variable based on what's assigned to it. They say that can be useful since you don't always need to know/care about a variable's type, but it seems to me you usually need to know in order to know what you can do with that variable..

    Nightfox