mise_a_jour:cpp:gcc
Vers la version 10
Les opérateurs de comparaison doivent être const
.
- bool operator==(const XXX &rOther) { ... } - bool operator!=(const XXX &rOther) { ... } + bool operator==(const XXX &rOther) const { ... } + bool operator!=(const XXX &rOther) const { ... }
mise_a_jour/cpp/gcc.txt · Dernière modification : 2019/10/23 08:26 de root