This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
major and minor macros in /usr/include/x86_64-linux-gnu/sys/sysmacros.h
- From: Pedro Larroy <pedro dot larroy dot lists at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 5 Jan 2012 02:03:58 +0100
- Subject: 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.