gcc 5 C++ string issue

Orion Poplawski orion at cora.nwra.com
Tue Feb 24 22:21:06 UTC 2015


error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>'
and 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}')
  #define ASSERT_NOT_EQUAL_( __A, __B)  { if (__A==__B) { std::ostringstream
s;s<<"ASSERT_NOT_EQUAL_("<<#__A<<","<<#__B<<") failed with\n"<<#__A<<"=" <<__A
<<"\n"<<#__B<<"="<<__B; THROW_EXCEPTION(s.str()) } }

Any idea what wrong here?

Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA, Boulder/CoRA Office             FAX: 303-415-9702
3380 Mitchell Lane                       orion at nwra.com
Boulder, CO 80301                   http://www.nwra.com

More information about the devel mailing list