Tag Archives: c++11

C++11 Auto Keyword

This is just a short post to illustrate the use of the auto keyword. It’s something really simple from the latest standard that you can use in your programs and it will save you typing time 🙂 . So, the auto keyword has always been around, but it was pretty much redundant. ‘auto’ was the […]

C++11 Threads Don’t Work in Eclipse (Luna)

If you want to use Eclipse to write programs that use the C++11 thread class, you need to make some adjustments to enable everything to run correctly. Without these, you’ll run into all sorts of strange errors. There are three steps to getting your program to run perfectly and here’s what you need to do:

A C++11 Threads Tutorial

Last week we created a simple program using the pthreads library. This week I’ve “translated” that program into the C++11 threads version, so you can see how it compares. I say compares, but on linux, using GCC, the C++11 thread library is basically a wrapper for pthreads anyway, so although you are using native C++ […]