ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] win32.hpp and min/max macros
by Dave Harris other posts by this author
Dec 30 2003 3:26PM messages near this date
RE: [boost] Re: Boost.Thread: Wrapping Native Windows EventVariables possible? | [boost] Re: please read! min/max guidelines
In-Reply-To: <bsq7jd$ruf$1@[...].org> 
eric@[...].com (Eric Niebler) wrote (abridged):
>  2003\Vc7\atlmfc\include\afxtempl.h(398) : error C2668: 'std::max' : 
>  ambiguous call to overloaded function

Does adding:
    #include <algorithm>  

before boost/utility help? I don't currently have access to my system to 
be sure, but I came across a similar issue and I think I decided boost had 
defined just two overloads of max without defining the general template. 
Adding the generic max template seemed to satisfy MFC. (I don't recall if 
I needed a using-declaration.)

-- Dave Harris, Nottingham, UK

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Thread:
Dave Harris
Edward Diener
Edward Diener
Eric Niebler
Daryle Walker
Eric Niebler
Thomas Witt
Paul Mensonides
Thomas Witt
David Abrahams
Eric Niebler
Jeff Garland
Beman Dawes
Paul Mensonides
Eric Niebler
Daniel Frey
Thomas Witt
Eric Niebler
Max Motovilov
Edward Diener
Eric Niebler
John Maddock
Eric Niebler
David Abrahams
Eric Niebler
Daryle Walker
Eric Niebler
Paul Mensonides
David Abrahams
Eric Niebler
John Maddock
Eric Niebler
Eric Niebler
Guillaume Melquiond
Eric Niebler
Guillaume Melquiond
Eric Niebler
Guillaume Melquiond
Eric Niebler
Alberto Barbati
Eric Niebler
Eric Niebler
David Abrahams
John Maddock
Eric Niebler
Beman Dawes
John Maddock
Eric Niebler
Dan W.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved