Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-03-23 13:18:35


A. int_c et al are now int_ et al.

B. In item 5.3 you should probably suggest:

      template< class N >
      struct square
          : integral_c< typename N::value_type, N::value * N::value >
      {};

   and later,

      template <long N>
      struct square_c : square<long_<N> > {};

   Not only is it simpler, but it allows:

       square<int_<5> >::value

   and:

       greater<square<_1>, 32>

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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