[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#343898: fix for unreadable error messages in g++ when #define'ing min or max



Hi,

the standard says:

  A translation unit that includes a header shall not contain any
  macros that define names declared or defined in that header.

So it's not generally disallowed to #define min/max, but rather there
should be only exactly two places checking for this, namely <limits>
and <algorithm>. The error message should be changed accordingly.

-- 
	Falk



Reply to: