Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no match for ‘operator<<’ #32

Open
tom-2015 opened this issue Nov 4, 2017 · 2 comments
Open

no match for ‘operator<<’ #32

tom-2015 opened this issue Nov 4, 2017 · 2 comments

Comments

@tom-2015
Copy link

tom-2015 commented Nov 4, 2017

I get a lot of these errors with the Log(level) function/class when I try to compile on a Raspberry Pi Debian Stretch:

`L3StateMachine.cpp: In member function ‘void Control::MachineBase::machineErrorMessage(int, int, const GSM::L3Message*, const SIP::DialogMessage*, const char*)’:
L3StateMachine.cpp:88:20: error: no match for ‘operator<<’ (operand types are ‘std::ostringstream {aka std::__cxx11::basic_ostringstream}’ and ‘std::ostringstream {aka std:
Log(level).get() <<os <<" Unexpected L3 message:"<<l3msg;

In file included from /usr/include/c++/6/istream:39:0,
              from /usr/include/c++/6/sstream:38,
              from ../CommonLibs/Logger.h:41,
              from L3StateMachine.h:31,
              from L3StateMachine.cpp:19:
/usr/include/c++/6/ostream:628:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&&, const _Tp&) [with _CharT = char; _Tstringstream<char>] <near match>
  operator<<(basic_ostream<_CharT, _Traits>&& __os, const _Tp& __x)
  ^~~~~~~~
`
g++ (Raspbian 6.3.0-18+rpi1) 6.3.0 20170516
Does anyone know a reason/solution?
@figbux
Copy link

figbux commented Dec 11, 2017

Got the same error on Arch Linux (4.9.65-1-lts)

@tom-2015
Copy link
Author

I've solved this using older gcc / g++ files.
Here is how to do it: https://www.raspberrypi.org/forums/viewtopic.php?f=41&t=196658

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants