
AMDG Manuel Jung wrote:
Well this looks nice, but it doesn't compile for me. I attached the compile errors output. Thanks!
The following compiles for me. #include <boost/fusion/include/map.hpp> #include <boost/fusion/include/mpl.hpp> #include <boost/mpl/vector.hpp> #include <boost/mpl/transform.hpp> namespace mpl = boost::mpl; namespace fusion = boost::fusion; namespace boost { template<class T> class promise_stream {}; } template< typename OutSignatures > struct filter_impl{ typedef typename fusion::result_of::as_map< typename mpl::transform< OutSignatures, fusion::pair<mpl::_1, boost::promise_stream<mpl::_1> > >::type >::type Out_type; }; #include <iostream> #include <typeinfo> int main() { std::cout << typeid(filter_impl<mpl::vector<int, char, double>
::Out_type).name() << std::endl; }
In Christ, Steven Watanabe