major and minor macros defined in sys/sysmacros.h pulled in by <iterator>
问题 I'm writing a class that has a matrix-like structure and I want to have a member function named minor to be the same as the matrix operation. This triggers some errors. A minimal test case on my system: #include <iterator> void minor(int row, int col); When compiled, clang provides the following error: $ clang++ -Weverything -std=c++11 test.cpp test.cpp:2:21: error: too many arguments provided to function-like macro invocation void minor(int row, int col); ^ /usr/include/x86_64-linux-gnu/sys