Boost logo

Boost Users :

From: João Abecasis (jpabecasis_at_[hidden])
Date: 2006-04-01 21:38:08


Kiuhnm wrote:
> 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.

I'll start by saying that I didn't actually try out your code. That
said, I think what you're seeing is the same issue I reported and
explained in the link below, together with workaround. I never got an
answer to that post, however...

     http://permalink.gmane.org/gmane.comp.lib.boost.devel/139253

The workaround is to use apply1 instead of apply in the placeholder
expression. Try this,

     typedef apply1< plus< _, int_<10> >, _ > t2;

Best regards,

João


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