Код: Выделить всё
#include
class bar
{
public:
// error: invalid use of template-name ‘std::array’ without an argument list
std::array foo { 50.0, 61.8 };
std::array bar { 50.0, 61.8 }; // OK
};
int main()
{
std::array foo { 50.0, 61.8 }; // OK
return 0;
}
Online GDB
Подробнее здесь: https://stackoverflow.com/questions/797 ... k-in-class
Мобильная версия