Boost logo

Boost :

Subject: [boost] [Concept Checking] function_requires
From: Jens Müller (blog_at_[hidden])
Date: 2011-12-18 07:08:52


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

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.

Best regards,

Jens


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