解决方案参考:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16605
Your code defines min/max as macros. The preprocessor expands this, which leaves what used to be std::max(x1, x2) as something that doesn't make much sense to the compiler any more. Since the standard says that the names min/max are reserved, simply remove these #defines from your sources. W.
0 条评论。