major and minor macros in /usr/include/x86_64-linux-gnu/sys/sysmacros.h

Pedro Larroy pedro.larroy.lists@gmail.com
Thu Jan 5 01:04:00 GMT 2012


Hi

Shouldn't major and minor macros in
/usr/include/x86_64-linux-gnu/sys/sysmacros.h be inline functions?
They prevent doing stuff like

struct T {
 T() : major() {}
 int major;
};

in C++.  According to the C++ standard those names shoudn't be
reserved to the implementation, and thus be available.

Pedro.



More information about the Gcc mailing list