8 Sep
2010
8 Sep
'10
7:15 a.m.
On Wed, Sep 8, 2010 at 12:08 AM, Hicham Mouline
Hello,
Is there a way to print the type returned by a metafunction
typedef some_metafunction<T>::type result_type;
during compile-time (probably via triggering a compilation error).
I almost recall some sort of static assertion (mpl ?) to do this.
If all you want is an error you could do typedef typename some_metafunction<T>::result_type error[0] or something like that. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode