Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2000-10-19 16:27:46

Howard Hinnant wrote on 10/19/2000 5:01 PM
>template <class Symbol>
>struct special_symbol_map
> typedef Symbol symbol_type;
> typedef typename remove_signedness<Symbol>::type index_type;
> // ...

Actually I think the whole thing could be simplified to:

template <class Symbol>
struct special_symbol_map
        typedef Symbol
        typedef typename boost::uint_t<sizeof(Symbol)*CHAR_BIT>::least
        // ...

<sigh> sometimes you have to write more code before you come around to
the "least code" solution. :-)


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