Closed ngeiswei closed 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.
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.