Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mich.cpp:114:5: error: static_assert failed due to requirement 'Fibin<unsigned char, true>::eval() == 55'
- static_assert(Fibin<uint8_t>::eval<If< Eq<L<32>, L<5>>, L<10>, L<11> >>() == 55);
- ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from mich.cpp:3:
- ./fibin.h:272:62: error: no member named 'value' in 'Invoke<Ref<16>, Lit<Fib<0> > >'
- return (T) Evaluate<Expr, EmptyEnvironment>::result::value;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
- mich.cpp:171:37: note: in instantiation of function template specialization 'Fibin<int, true>::eval<Let<1325242930, Lit<Fib<9> >, Let<16, Lambda<34, Sum<Ref<1325242930>, Ref<34> > >, Let<1325242930,
- Lit<Fib<10> >, Invoke<Ref<16>, Lit<Fib<0> > > > > > >' requested here
- static_assert(34 == Fibin<int>::eval<Scoping>());
- ^
- mich.cpp:171:25: error: static_assert expression is not an integral constant expression
- static_assert(34 == Fibin<int>::eval<Scoping>());
- ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from mich.cpp:3:
- ./fibin.h:272:62: error: no member named 'value' in 'Invoke<Let<34, Lit<Fib<1> >, Lambda<34, Ref<34> > >, Lit<Fib<3> > >'
- return (T) Evaluate<Expr, EmptyEnvironment>::result::value;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
- mich.cpp:173:37: note: in instantiation of function template specialization 'Fibin<unsigned int, true>::eval<Invoke<Let<34, Lit<Fib<1> >, Lambda<34, Ref<34> > >, Lit<Fib<3> > > >' requested here
- static_assert(2 == Fibin<uint>::eval<Invoke<Let<Var("x"), Lit<Fib<1>>, Lambda<Var("x"), Ref<Var("x")> > >, Lit<Fib<3>> > >());
- ^
- mich.cpp:173:24: error: static_assert expression is not an integral constant expression
- static_assert(2 == Fibin<uint>::eval<Invoke<Let<Var("x"), Lit<Fib<1>>, Lambda<Var("x"), Ref<Var("x")> > >, Lit<Fib<3>> > >());
- ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from mich.cpp:3:
- ./fibin.h:243:116: error: no type named 'result' in 'Evaluate<Eq<Lambda<34, Ref<34> >, Lambda<34, Ref<34> > >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >'
- typename Evaluate<Eq<typename Evaluate<LeftVal, Env>::result, typename Evaluate<RightVal, Env>::result>, Env>::result typedef result;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
- ./fibin.h:243:14: note: in instantiation of template class 'Evaluate<Eq<Lambda<34, Ref<34> >, Lambda<34, Ref<34> > >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >' requested here
- typename Evaluate<Eq<typename Evaluate<LeftVal, Env>::result, typename Evaluate<RightVal, Env>::result>, Env>::result typedef result;
- ^
- ./fibin.h:233:35: note: in instantiation of template class 'Evaluate<Eq<Ref<16>, Ref<16> >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >' requested here
- typename Evaluate<If<typename Evaluate<Condition, Env>::result, Then, Else>, Env>::result typedef result;
- ^
- ./fibin.h:238:14: note: in instantiation of template class 'Evaluate<If<Eq<Ref<16>, Ref<16> >, Lit<Fib<10> >, Lit<Fib<11> > >, Environment<16, Lambda<34, Ref<34> >, EmptyEnvironment> >' requested here
- typename Evaluate<Expression, Environment<Variable, typename Evaluate<Value,Env>::result, Env> >::result typedef result;
- ^
- ./fibin.h:272:20: note: in instantiation of template class 'Evaluate<Let<16, Lambda<34, Ref<34> >, If<Eq<Ref<16>, Ref<16> >, Lit<Fib<10> >, Lit<Fib<11> > > >, EmptyEnvironment>' requested here
- return (T) Evaluate<Expr, EmptyEnvironment>::result::value;
- ^
- mich.cpp:191:29: note: in instantiation of function template specialization 'Fibin<int, true>::eval<Let<16, Lambda<34, Ref<34> >, If<Eq<Ref<16>, Ref<16> >, Lit<Fib<10> >, Lit<Fib<11> > > > >' requested
- here
- static_assert(55 == FB::eval<FunctionComparison>());
- ^
- mich.cpp:191:25: error: static_assert expression is not an integral constant expression
- static_assert(55 == FB::eval<FunctionComparison>());
- ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from mich.cpp:3:
- ./fibin.h:272:62: error: no member named 'value' in 'Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34, Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >,
- Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
- Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<1> > > > > > > > > > > > >, Ref<24> >, Ref<24>, Sum<Ref<24>, Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > >'
- return (T) Evaluate<Expr, EmptyEnvironment>::result::value;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
- mich.cpp:219:30: note: in instantiation of function template specialization 'Fibin<unsigned long long, true>::eval<Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34,
- Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >, Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
- Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<1> > > > > > > > > > > > >, Ref<24> >, Ref<24>, Sum<Ref<24>,
- Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > > >' requested here
- Fibin<uint64_t>::eval<Invoke<
- ^
- mich.cpp:219:13: error: static_assert expression is not an integral constant expression
- Fibin<uint64_t>::eval<Invoke<
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- In file included from mich.cpp:3:
- ./fibin.h:272:62: error: no member named 'value' in 'Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34, Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >,
- Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
- Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
- Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<5> > > > > > > > > > > > > > > > > > > > > > > > > > >, Ref<24> >, Ref<24>,
- Sum<Ref<24>, Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > >'
- return (T) Evaluate<Expr, EmptyEnvironment>::result::value;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
- mich.cpp:225:30: note: in instantiation of function template specialization 'Fibin<unsigned long long, true>::eval<Invoke<Invoke<Lambda<16, Invoke<Lambda<34, Invoke<Ref<34>, Ref<34> > >, Lambda<34,
- Invoke<Ref<16>, Lambda<11281729, Invoke<Invoke<Ref<34>, Ref<34> >, Ref<11281729> > > > > > >, Lambda<16, Lambda<24, If<Eq<Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
- Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >,
- Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Sum<Lit<Fib<6> >, Lit<Fib<5> > > > >
- > > > > > > > > > > > > > > > > > > > > > >, Ref<24> >, Ref<24>, Sum<Ref<24>, Invoke<Ref<16>, Sum<Ref<24>, Lit<Fib<3> > > > > > > > >, Lit<Fib<1> > > >' requested here
- Fibin<uint64_t>::eval<Invoke<
- ^
- mich.cpp:225:13: error: static_assert expression is not an integral constant expression
- Fibin<uint64_t>::eval<Invoke<
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 11 errors generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement