Boost logo

Boost :

From: Aleksey Gurtovoy (alexy_at_[hidden])
Date: 2001-11-26 16:55:25


David A. Greene wrote:
> 'int_t<N>' looks to me like one is defining an integer type with
> a specific bit width, not mapping an integer to a type.

Well, it's really boost::mpl::int_t<>, there 'mpl' stands for "[template]
metaprogramming library", so it can't be an integer type with a specific bit
width because it's just out of the library's domain :). But writing
mpl::int_t<N> _is_ defining a compile-time integer type ("object"), which
has a value == N.

> I got very confused after reading Joel's message and your followup.

Do you have better suggestions? The main requirement here is that the naming
scheme should be able to cover all these bool, integer, fixed, and rational
compile-time types ("objects").

Aleksey


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