Я пытаюсь обновить
Код: Выделить всё
atomic
This is my code.
Код: Выделить всё
class counter {
public:
std::atomic done;
bool fn_write (int size) const {
static int count = 0;
if (count == size) {
done++;
count = 0;
return false;
} else {
count++;
return true;
}
}
};
int main() {
counter c1;
for (int i=0; i
Источник: [url]https://stackoverflow.com/questions/48533476/stdatomic-error-no-operatorint-declared-for-postfix-fpermissive[/url]