https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104592
Bug ID: 104592
Summary: Problem with std::basic_ostream
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: lukaszcz18 at wp dot pl
Target Milestone: ---
I use boost 1.78 c++11
https://boostorg.jfrog.io/artifactory/main/release/1.78.0/source/boost_1_78_0.zip
and charls-tools
https://github.com/malaterre/charls-tools/commit/b27c6071a42996b26ca91fbb015d4b42238d13cf
and
https://github.com/team-charls/charls/commit/662d4f2a0238357ccc4d89cd14b1fa67d2597ff1
jplsinfo.cpp:26:12: error: no match for 'operator<<' (operand types are
'std::stringstream' {aka 'std::__cxx11::basic_stringstream<char>'} and 'const
charls::spiff_profile_id')
26 | ss << val;
| ~~~^~~~~~
In file included from c:\msys1200\include\c++\12.0.1\istream:39,
from c:\msys1200\include\c++\12.0.1\fstream:38,
from jplsinfo.cpp:6:
c:\msys1200\include\c++\12.0.1\ostream:108:7: note: candidate:
'std::basic_ostream<_CharT, _Traits>::__ostream_type&
std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type&
(*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>;
__ostream_type = std::basic_ostream<char>]'
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
c:\msys1200\include\c++\12.0.1\ostream:108:36: note: no known conversion for
argument 1 from 'const charls::spiff_profile_id' to
'std::basic_ostream<char>::__ostream_type&
(*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>&
(*)(std::basic_ostream<char>&)'}
108 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~