opencog / moses

MOSES Machine Learning: Meta-Optimizing Semantic Evolutionary Search. See also AS-MOSES https://github.com/opencog/asmoses but kept to guaranty backward compatibility.
https://wiki.opencog.org/w/Meta-Optimizing_Semantic_Evolutionary_Search
Other
127 stars 83 forks source link

Fix clang compile error #102

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.