What is the value of \"Compiler Default\" for \"C++ Standard Library\" and \"C++ Language Dialect\" in Xcode 4.5?
My guess is libstdc++ and GNU++98, but it would be
Here is the best way to find out:
#include <iostream>
int main()
{
#ifdef _LIBCPP_VERSION
std::cout << "Using libc++\n";
#else
std::cout << "Using libstdc++\n";
#endif
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#if __cplusplus == 1
std::cout << "Language mode = gnu++11\n";
#else
std::cout << "Language mode = c++11\n";
#endif
#else
#if __cplusplus == 1
std::cout << "Language mode = gnu++98\n";
#else
std::cout << "Language mode = c++98\n";
#endif
#endif
}
Just build a test project with the compiler defaults and run it.