Boost logo

Boost :

Subject: Re: [boost] [Concept Checking] function_requires
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-12-18 08:07:37


on Sun Dec 18 2011, Jens Müller <blog-AT-tessarakt.de> wrote:

> Hi all,
>
> as far as I understand
> http://www.boost.org/doc/libs/1_48_0/libs/concept_check/reference.htm#deprecated-concept-checking-classes,
> function_requires() is deprecated.
>
> However, the documentation does not mention very clearly how to
> replace it. Is the BOOST_CONCEPT_ASSERT macro the replacement? E.g.,
> does
>
> function_requires< VertexListGraphConcept<Graph> >();
>
> now become
>
> BOOST_CONCEPT_ASSERT((VertexListGraphConcept<Graph>));

Yes.

> function_requires still appears in a lot of test cases of the Graph
> library. So if it is that easy to change, I would hand in a patch.

I suggest you also patch the concept_check docs to clarify this :-)

-- 
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