Boost logo

Boost :

From: Dave Harris (brangdon_at_[hidden])
Date: 2003-12-30 10:26:12

In-Reply-To: <bsq7jd$ruf$1_at_[hidden]>
eric_at_[hidden] (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

Boost list run by bdawes at, gregod at, cpdaniel at, john at