C++ Modules – why were they removed from C++0x? Will they be back later on?

C++ Modules draft (Technical Specification after C++17) A draft and several updated revisions for the C/C++ module specification have been published by WG21 on open-std.org. I will link only to the latest documents here: Working Draft, Extensions to C++ for Modules N4610 (October 2016). Fourth revision published as P0142R0 (March 2016). Wording for Modules published … Read more

What’s this C++ syntax that puts a brace-surrounded block where an expression is expected?

It assigns user input value to a and prints it out. it is done by using a Statement Expression. Statement Expressions are a gnu gcc compiler extension and are not supported by the C/C++ standards. Hence, any code which uses statement expression is not standard conforming and non-portable. The IBM XL C/C++ v7.0 also support … Read more