diff --git a/include/boost/lambda/detail/control_structures_impl.hpp b/include/boost/lambda/detail/control_structures_impl.hpp index 3eda8b0..b575ffa 100644 --- a/include/boost/lambda/detail/control_structures_impl.hpp +++ b/include/boost/lambda/detail/control_structures_impl.hpp @@ -257,8 +257,9 @@ struct return_type_2_ifthenelsereturn; // if A can be converted to B and vice versa -> ambiguous template struct return_type_2_ifthenelsereturn { - typedef typename - detail::generate_error::ambiguous_type_in_conditional_expression type; + typedef + detail::return_type_deduction_failure type; + // ambiguous type in conditional expression }; // if A can be converted to B and vice versa and are of same type template @@ -303,9 +304,9 @@ struct return_type_2_ifthenelsereturn<1, false, false, false, A, B> { // PHASE 6:2 template struct return_type_2_ifthenelsereturn<2, false, false, false, A, B> { - typedef typename - detail::generate_error::types_do_not_match_in_conditional_expression - type; + typedef + detail::return_type_deduction_failure type; + // types_do_not_match_in_conditional_expression };