我很难在谷歌上找到这方面的搜索结果。
struct a {
float m_x;
float m_z;
public:
a(float x): m_x(x) {}
};
class b : public a {
b(float z): m_z(z) {}
};在clang 3.2上:
error: member initializer 'm_z' does not name a non-static data member or base class
b(float z): m_z(z) {}https://stackoverflow.com/questions/18479295
复制相似问题