foo.cc:20:31: error: duplicate ‘const’
20 | Complex(const Complex const* pObj)
| ^~~~~
| -----
foo.cc: In function ‘std::ostream operator<<(std::ostream&, const Complex&)’:
foo.cc:57:24: 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>]’
57 | return out;
| ^~~
In file included from iostream:41:
/nix/gcc-13.2.0/include/c++/13.2.0/ostream:438:7: note: declared here
438 | basic_ostream(const basic_ostream&) = delete;
| ^~~~~~~~~~~~~