News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

It works on Visual Studio,But on CodeBlocks it doesn't work

Started by tilblackout, May 10, 2019, 11:42:15 AM

Previous topic - Next topic

tilblackout

friend ostream& operator<<(ostream& os ,Fraction &&obj)
error: expected ',' or '...' before '&&' token|。
On VS there is no error.
How can I solve it?

Miguel Gimenez

rvalue references needs a C++11 or newer compiler, did you activate C++11 mode in whatever compiler you are using (CodeBlocks is not a compiler)?