Boost logo

Boost :

From: Stefan Slapeta (stefan_at_[hidden])
Date: 2004-09-20 04:10:11


see http://tinyurl.com/3t3tc

It seems that the concept_checks are inactive in release cfg, at least
the lines

template <class Concept>
inline void function_requires(mpl::identity<Concept>* = 0)
{
#if !defined(NDEBUG)
   void (Concept::*x)() = BOOST_FPTR Concept::constraints;
   ignore_unused_variable_warning(x);
#endif
}

make me think so.

If there is no better way to instantiate Concept::constraints (without
creating a local variable, which seems to be the reason to avoid the
check in release mode), the cf-tests must be disabled for all release
configurations.

Stefan


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