
1 Apr
2006
1 Apr
'06
9:37 a.m.
I am just a beginner so my question could be very stupid. Please be patient. What is wrong with the following code? It should be clear enough what I am trying to do.
#include <iostream>
#include <boost/mpl/int.hpp> #include <boost/mpl/apply.hpp> #include <boost/mpl/plus.hpp> int main() { using namespace boost::mpl; // ... typedef apply< plus< _, int_<10> >, int_<1> >::type t; std::cout << typeid(t).name() << std::endl; typedef apply< plus< _, int_<10> >, _ > t2; typedef apply< t2, int_<1> >::type res; // ??? std::cout << typeid(res).name() << std::endl; } <<< Kiuhnm -- View this message in context: http://www.nabble.com/mpl%2C-apply%2C-placeholders-t1379886.html#a3705111 Sent from the Boost - Users forum at Nabble.com.