For questions about the intricacies of formal or authoritative specifications of programming languages and environments.
As of C++14, thanks to n3781 (which in itself does not answer this question) we may write code like the …
c++ language-lawyer c++14 digitNow we all sometimes have to work with binary data. In C++ we work with sequences of bytes, and since …
c++ c++11 language-lawyer strict-aliasing uint8tI have an enum in a namespace and I'd like to use it as if it were in a different …
c++ enums namespaces typedef language-lawyerConsider this code, template<class T> struct Sample { typename T::X *x; //declare pointer to T's X }; In …
c++ templates typedef language-lawyer typenameBy my reading of the C++ Standard, I have always understood that the sizes of the integral fundamental types in …
c++ standards long-integer language-lawyerConsider following program: #include <iostream> int main = ( std::cout << "C++ is excellent!\n", 195 ); Using g++ 4.8.1 (mingw64) …
c++ main language-lawyerDoes the C++ specification define: the existence of the 'less than' operator for boolean parameters, and if so, the result …
c++ boolean language-lawyer comparison-operatorsI'm reading a section from C Primer Plus about command-line argument argv and I'm having difficulty understanding this sentence. It …
c arrays pointers language-lawyer argvIn C++ why the pure virtual method mandates its compulsory overriding only to its immediate children (for object creation), but …
c++ overriding language-lawyer class-hierarchy virtual-functionsFirst, I want to say, according to cppreference.com, it is somewhat impossible to value-initialize an enum. According to http://…
c++ enums initialization language-lawyer value-initialization