Boost logo

Boost :

From: Alisdair Meredith (alisdair.meredith_at_[hidden])
Date: 2003-02-14 07:18:13

Several of the boost libraries select functionality based on the result
of some compile-time test. The result is usually stored in a
BOOST_STATIC_CONST( bool, test::value );

The current Borland compiler does not allow these values to be used as
template parameters though.

I suggest a new config macro

and if this is defined the metafunction result is passed directly into
the template parameter

eg: [from lambda_traits]

      function_action< boost::tuples::length<args_t>::value >
> action_type;
  BOOST_STATIC_CONSTANT(int, nof_elems =

> action_type;

I am not sure if any other compilers would benefit from such a macro,
nor if this is misbehaviour is new to v6


Boost list run by bdawes at, gregod at, cpdaniel at, john at