Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Help
»
It works on Visual Studio,But on CodeBlocks it doesn't work
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: It works on Visual Studio,But on CodeBlocks it doesn't work (Read 2853 times)
tilblackout
Single posting newcomer
Posts: 2
It works on Visual Studio,But on CodeBlocks it doesn't work
«
on:
May 10, 2019, 11:42:15 am »
friend ostream& operator<<(ostream& os ,Fraction &&obj)
error: expected ',' or '...' before '&&' token|。
On VS there is no error.
How can I solve it?
Logged
Miguel Gimenez
Developer
Lives here!
Posts: 1563
Re: It works on Visual Studio,But on CodeBlocks it doesn't work
«
Reply #1 on:
May 10, 2019, 12:49:35 pm »
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)?
Logged
tilblackout
Single posting newcomer
Posts: 2
Re: It works on Visual Studio,But on CodeBlocks it doesn't work
«
Reply #2 on:
May 10, 2019, 01:04:11 pm »
THX,Solved.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Help
»
It works on Visual Studio,But on CodeBlocks it doesn't work