Boost logo

Boost :

From: Johan Lindvall (johan.lindvall_at_[hidden])
Date: 2007-01-26 03:54:18


On 1/25/07, Joaquín Mª López Muñoz <joaquin_at_[hidden]> wrote:
> Please see http://tinyurl.com/39boxy , where MSVC 8.0 complains
> that there's no unchecked_equal function in namespace stdext:
>
> [...]
> c_regex_traits.cpp
> ..\boost/regex/v4/regex_workaround.hpp(154) : error C2039:
> 'unchecked_equal' : is not a member of 'stdext'
> [...]
>
> The probably crucial issue about this failing test is that it's being
> built
> in *release* mode, so I wonder whether the existence of
> unchecked_equal depends on some of the MSVC 8.0 "safe mode"
> settings.

In our code (built with MSVC 8) we use something like this:

#if _SECURE_SCL
    stdext::unchecked_copy(...);
#else
    std::copy(...);
#endif

Testing against _SECURE_SCL should solve the problem.

-- 
/Johan.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk