Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-04-30 08:32:54


John Maddock wrote:

> template < std::size_t Bits >
> struct reflector
> {
> static typename boost::uint_t<Bits>::fast
> reflect( typename boost::uint_t<Bits>::fast x );
> };
>
> and then replacing calls to reflect<N> with calls to reflector<N>::reflect.

Ah, something similar was in the original source and I failed
to understand why it was that way.
Daryle, when adjusting your library, please do make sure you put in a
comment, something like this:

// this function must be a member of a struct, because MSVC cannot handle
// functions with template value parameters.

Jens Maurer


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