Top "Standards-compliance" questions

Java reflection: Is the order of class fields and methods standardized?

Using reflection on Java classes to access all field, methods, and so on: Is there a standardized order of these …

java reflection standards-compliance
Does a dot have to be escaped in a character class (square brackets) of a regular expression?

A dot . in a regular expression matches any single character. In order for regex to match a dot, the dot …

regex standards standards-compliance square-bracket
Why does MySQL allow "group by" queries WITHOUT aggregate functions?

Surprise -- this is a perfectly valid query in MySQL: select X, Y from someTable group by X If you …

mysql sql standards-compliance ansi-sql
Does constexpr imply inline?

Consider the following inlined function : // Inline specifier version #include<iostream> #include<cstdlib> inline int f(const …

c++ c++11 inline standards-compliance constexpr
On the std::abs function

Is the std::abs() function well defined for ALL arithmetic types in C++11 and will return |x| with no problem …

c++ c++11 standards-compliance absolute-value
Is main() really start of a C++ program?

The section $3.6.1/1 from the C++ Standard reads, A program shall contain a global function called main, which is the designated …

c++ standards-compliance main entry-point
Gnu C++ macro __cplusplus standard conform?

The Gnu C++ compiler seems to define __cplusplus to be 1 #include <iostream> int main() { std::cout << __…

c++ gcc c++11 standards-compliance c++-standard-library
__func__ C++11 function's local predefined variable, won't compile

The __func__ C++11 local predefined variable of a function does not compile in Visual Studio 2012 Professional (with Update 1 installed) with …

c++ visual-c++ c++11 visual-studio-2012 standards-compliance
std::streampos, std::streamoff and std::streamsize to long long int?

To measure position/offsets/size of streams, the standard specify std::streampos, std::streamoff and std::streamsize, but they are …

c++ file c++11 stream standards-compliance
When does invoking a member function on a null instance result in undefined behavior?

Consider the following code: #include <iostream> struct foo { // (a): void bar() { std::cout << "gman was here" &…

c++ undefined-behavior language-lawyer standards-compliance null-pointer