Author Topic: problem compile auto operator<=>  (Read 2321 times)

Offline dkaip

  • Multiple posting newcomer
  • *
  • Posts: 42
problem compile auto operator<=>
« on: September 13, 2022, 09:23:39 pm »
I have problem with auto operator<=>(const Fraction& f) const;.
Compiler settings -std=gnu++2a but nothing.

compiler says error: declaration of 'operator<=' as non-function

I ma working at Linux Mint.
Thank you

Jim.


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1630
Re: problem compile auto operator<=>
« Reply #1 on: September 14, 2022, 11:23:35 am »
Code::Blocks is an IDE, not a compiler, so compilation problems are OT here.