Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implicit instantiation of undefined template 'std::__1::array<int, 3>'

Tags:

I copy and pasted this exact code, found here into my IDE, and got an error, I don't understand why it's happening and would like to learn why.

std::array<int, 3> a2 = {1, 2, 3}; // except after =
like image 995
Hobbyist Avatar asked Aug 08 '13 23:08

Hobbyist


1 Answers

Make sure to remember #include <array>

But if you don't include any standard headers, you should get a simpler error about std being undefined.

like image 130
2 revs, 2 users 57% Avatar answered Sep 23 '22 07:09

2 revs, 2 users 57%