This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]