I have the following code:
int x = {{}};
Is this syntax valid according to the C++ standard? (I'm interested in C++11 and later.)
When using the latest compilers there is no problem, however in some older ones (e.g. GCC 4.8.5) it gives following error:
error: braces around scalar initializer for type 'int'