In the following code, the compiler complains as: struct std::array<double,5ul> has no member named 'assign'
. Here, it seems possible. Why is it so? (Compiler: g++ 4.8.2)
#include <array>
int main()
{
std::array<double,5> arr;
arr.assign(4.); // error: has no member named 'assign'
return 0;
}
array::assign()
is a Visual Studio extension. You are compiling with g++. Check here standard g++ array
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With