4 ms·
>C++ has its own atomics, threads etc. It does indeed, but they are not compatible and at least the C atomics cannot be used from C++. >C++ also has it's own
by 201984 7mo ago
>C++ has its own atomics, threads etc.
It does indeed, but they are not compatible and at least the C atomics cannot be used from C++.
>C++ also has it's own designated initializer like syntax.
One that is far more limited. This is valid C, but not C++.
struct bar {
int a;
int b;
};
struct bar tmp = {
.b = 0,
.a = 0,
};