Код: Выделить всё
#include
#include
struct Counter { // Counts number of `operator,` calls
std::size_t count = 0;
Counter& operator,(int) {
++count;
return *this;
}
void finish(const char* label, std::size_t expected) const {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79872387/gcc-miscompiles-long-chains-of-overloaded-operator[/url]
Мобильная версия