Boost logo

Boost :

From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2004-09-06 11:47:31


Hi all,

The new version of typeof library can be found at:

http://groups.yahoo.com/group/boost/files/typeof.zip

This version contains the following improvements:

1) The compilation speed is significantly improved for simple types by not
instantiating unnecessary templates;

2) Support for integral template parameters has been added so that, for
example, a template:

template<class T, unsigned int ui, bool b, short s> class foo;

can be registered like this:

BOOST_REGISTER_TEMPLATE_X(foo, (class)(unsigned int)(bool)(short));

(_X stands for "extra" or "extended". Any naming improvement suggestions
are welcome)

A template parameter can be described as:

class
typename
[unsigned] char
[unsigned] short
[unsigned] int
[unsigned] long
unsigned
bool

3) The vector size limit is now controled by BOOST_TYPEOF_LIMIT_SIZE. If it
is bigger than BOOST_MPL_LIMIT_VECTOR_SIZE, the additional vector
definitions are generated automatically (using the method suggested and
explained by Aleksey Gurtovoy).

(There appears to be one more limitation that I wasn't aware of. It is
related to the max number of template parameters allowed by the compiler.
For example, VC7.1 appears to have a limit of 64)

4) All is compiled against current Boost CVS.

Any comments are most welcome.

Regards,
Arkadiy


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