Boost logo

Boost Users :

Subject: [Boost-users] trick to print a type at compile-time
From: Hicham Mouline (hicham_at_[hidden])
Date: 2010-09-08 03:08:05


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.

 

regards,



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net