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::EvalOpt()( lit(xc)[1] );
Hi Eric,
boost/proto/matches.hpp:391:13: error: invalid use of incomplete type
'struct boost::proto::detail::uncvrefarity_caller::CanBeCalledPlus2,
mpl_::integral_cint, 2 ::type'
Now look at how you've defined CanBeCalled:
templatetypename Fun, typename Int
struct CanBeCalled;
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::uncvrefarity_caller::CanBeCalledPlus2,
mpl_::integral_cint, 2 ::type' Now look at how you've defined
CanBeCalled:
templatetypename
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 first