[omniORB] CORBA.h and std::min collision in VC++ 7.1

Brian Neal bgneal at gmail.com
Tue Mar 13 08:19:41 GMT 2007


> I have a problem using std::min and a corba object in the same file.
> Here is the example:

Unfortunately Microsoft #define's macros min and max (yes, in lower
case). When working with that compiler in the past we have had to do

#undef min
#undef max

before using the those functions. Remember that macros do not respect
scope or namespaces. It really irks me when people don't put
MACRO_NAMES_IN_ALL_UPPER_CASE.



More information about the omniORB-list mailing list