/in/foo.cc:20:24: error: duplicate 'const'
Complex(const Complex const* pObj)
^~~~~
/in/foo.cc: In function 'std::ostream operator<<(std::ostream&, const Complex&)':
/in/foo.cc:45:10: error: 'std::basic_ostream<_CharT, _Traits>::basic_ostream(const std::basic_ostream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]' is protected within this context
return out;
^~~
In file included from /usr/include/c++/6/iostream:39:0,
from /in/foo.cc:1:
/usr/include/c++/6/ostream:391:7: note: declared protected here
basic_ostream(const basic_ostream&) = delete;
^~~~~~~~~~~~~
/in/foo.cc:45:10: error: use of deleted function 'std::basic_ostream<_CharT, _Traits>::basic_ostream(const std::basic_ostream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]'
return out;
^~~
In file included from /usr/include/c++/6/iostream:39:0,
from /in/foo.cc:1:
/usr/include/c++/6/ostream:391:7: note: declared here
basic_ostream(const basic_ostream&) = delete;
^~~~~~~~~~~~~