Boost logo

Boost Users :

From: Kiuhnm (kiuhnm03_at_[hidden])
Date: 2006-04-01 11:37:44


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.

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