Added conditional compiling for only C++11 required element, in the C++ test.