Boost logo

Boost :

From: Fernando Cacciola (fcacciola_at_[hidden])
Date: 2001-12-05 08:36:07


----- Original Message -----
From: David Abrahams <david.abrahams_at_[hidden]>
To: boost <boost_at_[hidden]>
Sent: Wednesday, December 05, 2001 10:18 AM
Subject: [boost] looking for a Borland metaprogramming hint

> When I pass a function pointer type as the first argument to the
following:
>
> template <class T, std::size_t size>
> void assert_arg_tuple_size()
> {
> typedef detail::arg_tuple_size<T> size_expr;
> BOOST_STATIC_ASSERT(size_expr::value == size);
> }
>
Could you post a complete example?.
If I test the above with a "detail::arg_tuple_size<T>::value" equal to
"sizeof(T)" it compiles fine.

Fernando Cacciola
Sierra s.r.l.
fcacciola_at_[hidden]
www.gosierra.com


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