Top "C++11" questions

Use this tag for code that must compile as C++11 (not using any features introduced in C++14 or later).

Compiling C++11 with g++

I'm trying to update my C++ compiler to C++11. I have searched a bit and I have come to the …

c++ c++11 g++ flags
What is a lambda expression in C++11?

What is a lambda expression in C++11? When would I use one? What class of problem do they solve that …

c++ lambda c++11 c++-faq
What is move semantics?

I just finished listening to the Software Engineering radio podcast interview with Scott Meyers regarding C++0x. Most of the …

c++ c++-faq c++11 move-semantics
How do I activate C++ 11 in CMake?

When I try to run a CMake generated makefile to compile my program, I get the error that range based …

c++11 cmake
Is it possible to print a variable's type in standard C++?

For example: int a = 12; cout << typeof(a) << endl; Expected output: int

c++ variables c++11 typeof
to_string is not a member of std, says g++ (mingw)

I am making a small vocabulary remembering program where words would would be flashed at me randomly for meanings. I …

c++ c++11 g++ mingw tostring
push_back vs emplace_back

I'm a bit confused regarding the difference between push_back and emplace_back. void emplace_back(Type&& _Val); …

c++ visual-studio-2010 stl c++11 move-semantics
Start thread with member function

I am trying to construct a std::thread with a member function that takes no arguments and returns void. I …

c++ multithreading c++11
What exactly is nullptr?

We now have C++11 with many new features. An interesting and confusing one (at least for me) is the new …

c++ pointers c++11 nullptr