Skip to content

Commit

Permalink
fityk/GAfit.cpp: add 'const' to fix compilation error
Browse files Browse the repository at this point in the history
error occured on OSX 10.9 (clang)
  • Loading branch information
wojdyr committed Nov 19, 2013
1 parent 643f487 commit 658ec7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fityk/GAfit.cpp
Expand Up @@ -342,7 +342,7 @@ void GAfit::stochastic_remainder_sampling(vector<int>& next)
struct Remainder_and_ptr {
int ind;
realt r;
bool operator< (const Remainder_and_ptr &b) {
bool operator< (const Remainder_and_ptr &b) const {
return r < b.r;
}
};
Expand Down

0 comments on commit 658ec7e

Please sign in to comment.