Boost logo

Boost :

Subject: Re: [boost] [concept] forward declarations and `BOOST_CONCEPT_REQUIRES()`
From: David Abrahams (dave_at_[hidden])
Date: 2010-08-11 17:03:38


At Wed, 11 Aug 2010 22:54:21 +0200,
Stefan van Kessel wrote:
>
> On 8/11/2010 8:44 PM, Lorenzo Caminiti wrote:
> > I have this error on _MSC_VER 1400 (MSVC8?) so I was thinking to use:
> >
> > #if BOOST_WORKAROUND(BOOST_MSVC,>= 1400)
> > ... // Workaround wrapper for BOOST_CONCEPT_CHECK following your code below.
> > #else
> > ... // Original BOOST_CONCEPT_CHECK with no workaround.
> > #endif
>
> That is the general idea but I'd go with
> #elif BOOST_WORKAROUND(BOOST_MSVC, <= 1600) &&
> BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
> since I'm still hopeful that in the upcoming MSVC release the workaround
> won't be necessary.

Normally in a case like this we use BOOST_TESTED_AT, so we can easily find
and test workarounds that may no longer be needed.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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