opencog / asmoses

MOSES Machine Learning: Meta-Optimizing Semantic Evolutionary Search for the AtomSpace (https://github.com/opencog/atomspace)
https://wiki.opencog.org/w/Meta-Optimizing_Semantic_Evolutionary_Search
Other
38 stars 29 forks source link

Fix clang compile error #75

Closed ngeiswei closed 3 years ago

ngeiswei commented 3 years ago

Indeed, this only works for const references on the stack, not as class members, as explained here

https://herbsutter.com/2008/01/01/gotw-88-a-candidate-for-the-most-important-const/

meaning clang is actually correct here, not gcc.