Reputation: 129
I'm writing a program and have a function named "move". But it's highlighted in my codeblocks? Is move a reserved word in c++? If so, what does it do?
I have it as void move( double t, double u)
Upvotes: 5
Views: 403
Reputation: 141618
It's not a keyword, but there is a commonly-used standard library function called std::move
; whoever set up your IDE's syntax highlighting decided to highlight it.
To avoid confusion with people reading your code, it'd be a good idea to call your function something else.
Upvotes: 4