Clang C++11 status page says that “Non static data member initializations” is available in clang 3.0.
I’m on Xcode 4.3, clang++ --version gives this:
Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn)
This example fails to compile:
#include
using namespace std;
struct foo
{
string s(“aa”);
};
With this error:
test3.cpp:6:11: error: expected parameter declarator
string s(“aa”);
^
test3.cpp:6:11: error: expected ‘)’
test3.cpp:6:10: note: to match this ‘(’
string s(“aa”);
Am I misunderstanding something? Thanks in advance!