Код: Выделить всё
#include
struct Agg /*: boost::equality_comparable */{ // when I uncomment this
int i{};
int j{};
friend bool operator==(const Agg&, const Agg&) { return true; }
};
int main() {
return Agg{/*{},*/ 1}.i; // I also need to uncomment this
}
Я хотел бы добавить оператор! Сайты, которые были бы прерыванием и не стоили.>
Подробнее здесь: https://stackoverflow.com/questions/796 ... ut-messing