Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

const issue on initial build #1

Open
GoogleCodeExporter opened this issue Sep 5, 2015 · 1 comment
Open

const issue on initial build #1

GoogleCodeExporter opened this issue Sep 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by james.ga...@gmail.com on 22 Dec 2013 at 1:45

@GoogleCodeExporter
Copy link
Author

Gah. I'm sorry. That got saved *way* too quickly, and I don't see an obvious 
way to edit it.

I'm trying to run through the basic tutorial on a linux box, using g++ 4.7.3. I 
started with the most recent trunk code pulled from here.

Did the basic `mkdir build; cd build; cmake ..; make all` thing.

It failed because of const'ness issues in tutorial18_particles.cpp.

I changed line 29 from
bool operator<(Particle& that){
to
bool operator<(const Particle& that) const {
and my build errors went away.

Original comment by james.ga...@gmail.com on 22 Dec 2013 at 1:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant