I'm trying some code with c++11,
struct Data {};
struct B {
B(Data data) : m_data{data} {}
Data m_data{};
};
it complains error: too many initializers for 'Data'
what is wrong?
[UPDATE] thanks guys, there is something wrong with my toolchain configuration.