Menu

#6 WinCore.h breaks min() max() macros

Version 5.5
closed
nobody
Win32++ (25)
5
2007-11-11
2007-10-25
jaybus
No

WinCore.h undefs min and max, replacing them with inlined functions:

inline int min(int a, int b) {return a<b? a:b;}
inline int max(int a, int b) {return a<b? a:b;}

This breaks min() and max() macros defined in WinDef.h, (included by windows.h) for all types except int.

Is this really needed?

Discussion

  • David

    David - 2007-10-27
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • David

    David - 2007-11-16

    Logged In: YES
    user_id=1233937
    Originator: NO

    Macros are used to define min and max as of version 5.6