prog.cpp: In function ‘std::__cxx11::string debug_rep(const T&)’:
prog.cpp:6:12: error: invalid use of incomplete type ‘std::ostringstream {aka class std::__cxx11::basic_ostringstream<char>}’
return ret.str();
^
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from prog.cpp:1:
/usr/include/c++/6/iosfwd:104:11: note: declaration of ‘std::ostringstream {aka class std::__cxx11::basic_ostringstream<char>}’
class basic_ostringstream;
^~~~~~~~~~~~~~~~~~~
prog.cpp: In function ‘std::__cxx11::string debug_rep2(const T&)’:
prog.cpp:13:12: error: invalid use of incomplete type ‘std::ostringstream {aka class std::__cxx11::basic_ostringstream<char>}’
return ret.str();
^
In file included from /usr/include/c++/6/ios:38:0,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from prog.cpp:1:
/usr/include/c++/6/iosfwd:104:11: note: declaration of ‘std::ostringstream {aka class std::__cxx11::basic_ostringstream<char>}’
class basic_ostringstream;
^~~~~~~~~~~~~~~~~~~