Печать std :: массивC++

Программы на C++. Форум разработчиков
Anonymous
Печать std :: массив

Сообщение Anonymous »

Итак, играя со STD :: Array, я хотел простой способ распечатать все элементы массива, и попробовал следующее: < /p>

using namespace std;

template
ostream& operator

Любые идеи о том, что означает эта ошибка, и как я бы ее исправил?test.cpp: In function 'int main()':
test.cpp:20:17: error: no matching function for call to 'print_array(std::array&)'
test.cpp:20:17: note: candidate is:
test.cpp:12:6: note: template void print_array(const std::array&)


Подробнее здесь: https://stackoverflow.com/questions/191 ... n-stdarray

Вернуться в «C++»