
8 Aug
2004
8 Aug
'04
6:38 p.m.
Christoph Ludwig wrote:
template<class> struct pack;
template<class T> struct pack<void (T)> { typedef T type; };
BOOST_CLASS_EXPORT( pack<void (DerivedStatus< Algo<int, double >
)>::type );
That did the trick! Great!
I am not sure which of Boost's libraries is the most adequate place for such a tool (preprocessor? mpl?), but it is certainly valuable. And if / once there is such a tool in Boost, then the documentation of macros that are likely to take classes genareted from templates as arguments should refer to it.
Hmmm - maybe we should just roll this into export.hpp - Would this create any other problems? Robert Ramey