
20 May
2009
20 May
'09
4:10 p.m.
Steven Watanabe wrote:
#include
template
struct promote { BOOST_TYPEOF_NESTED_TYPEDEF_TPL(nested, (T0() + T1())) typedef typename nested::type type; };
This is actually one of the most easy way to do it without tons of specialization. It also can be scaled up to N args type pretty easily. -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35