Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] Object got sliced when passed by reference
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2011-03-12 02:24:53


I just compiled your smaple using g++-4.5 and i got:

logical_and(
     logical_or(
         terminal(4baseI2F1E)
       , terminal(4baseI2F2E)
     )
   , terminal(4baseI2F3E)
)
hodqhoqw
0

Why is I think the correct answer. So this is tied to some MSVC specific
behavior, i guess mayeb on how the terminal< base<_> const &> is matched.
matching terminal< base<_> > should be enough I think no ? Could you try ?

HTH


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