Re: [proto] Nested Transforms

2011-02-28 Thread Nate Knight
On Feb 26, 2011, at 4:55 AM, Eric Niebler wrote: > On 2/26/2011 8:18 AM, Nate Knight wrote: >> >> int main() >> { >>la::state_type x = {1.0,2.0}; >>la::state_type const& xc = x; >> >>// this compiles >>la::EvalOpt()( lit(x)[1] ); >> >>// this fails to compile >>//la::Ev

Re: [proto] invalid use of incomplete type 'detail::uncvref<...>'

2011-02-28 Thread Hossein Haeri
Hi Eric, > boost/proto/matches.hpp:391:13: error: invalid use of incomplete type > 'struct boost::proto::detail::uncvref mpl_::integral_c > >::type' > Now look at how you've defined CanBeCalled: > > template > struct CanBeCalled; Thanks. I added another specialisation for mpl::integral_c > an

Re: [proto] invalid use of incomplete type 'detail::uncvref<...>'

2011-02-28 Thread Eric Niebler
On 3/1/2011 3:15 AM, Hossein Haeri wrote: > Hi Eric, > >> boost/proto/matches.hpp:391:13: error: invalid use of incomplete >> type 'struct >> boost::proto::detail::uncvref> mpl_::integral_c > >::type' Now look at how you've defined >> CanBeCalled: >> >> template struct CanBeCalled; > > Thanks. I

Re: [proto] Nested Transforms

2011-02-28 Thread Eric Niebler
On 2/28/2011 11:40 PM, Nate Knight wrote: > > On Feb 26, 2011, at 4:55 AM, Eric Niebler wrote: >> >> I think I know what's causing this. Can you try compiling with >> BOOST_PROTO_STRICT_RESULT_OF? > > Eric, > > Thanks for the information. Compiling with BOOST_PROTO_STRICT_RESULT_OF > allows the