"incompatible types in assignment of 'float*' to float [3]" |
|
|
|
|
error: could not convert '{"name1", 1}' from '<brace-enclosed initializer list>' to 'A' |
--------------------------- g++ 7.1 -std=c++14 ------------------------------------ g++ (GCC) 7.1.0 ok --------------------------- g++ 5.1 -std=c++14 ------------------------------------ g++-5.1 (GCC) 5.1.0 ok --------------------------- g++ 5.1 -std=c++11 (error) ------------------------------------ g++-5.1 (GCC) 5.1.0 main.cpp:15:5: warning: non-static reference 'A& B::a' in class without a constructor [-Wuninitialized] A& a; // reference to structure of type A ^ main.cpp: In function 'int main()': main.cpp:28:5: error: could not convert '{"name1", 1}' from '<brace-enclosed initializer list>' to 'A' }; ^ main.cpp:28:5: error: could not convert '{"name2", 2}' from '<brace-enclosed initializer list>' to 'A' main.cpp:34:5: error: could not convert '{"b1", aa[0], {5.0e-1, 1.0e+0, 1.5e+0}, {1.0e+0, 2.0e+0}}' from '<brace-enclosed initializer list>' to 'B' }; ^ main.cpp:34:5: error: could not convert '{"b2", aa[1], {5.0e-1, 1.0e+0, 1.5e+0}, {1.0e+0, 2.0e+0}}' from '<brace-enclosed initializer list>' to 'B' |
|
|