646: Fix in xtd/optraits.hh.

2006-10-16 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> * xtd/optraits.hh (get_trait_): Change mlc_is_found into mlc::is_ok_ so that mlc::undefined means 'not user-defined'. Index: xtd/optraits.hh =================================================================== --- xtd/optraits.hh (revision 645) +++ xtd/optraits.hh (working copy) @@ -187,7 +187,7 @@ typedef typename get_case_< op_<name>, mlc::pair_<L, R> >::ret case_t; typedef mlc_ret(case_t) case_ret; - typedef typename mlc::if_< mlc_is_found(user_ret), user_ret, case_ret >::ret ret; + typedef typename mlc::if_< mlc::is_ok_<user_ret>, user_ret, case_ret >::ret ret; }; @@ -205,7 +205,7 @@ typedef typename get_case_< op_<name>, T >::ret case_t; typedef mlc_ret(case_t) case_ret; - typedef typename mlc::if_< mlc_is_found(user_ret), user_ret, case_ret >::ret ret; + typedef typename mlc::if_< mlc::is_ok_<user_ret>, user_ret, case_ret >::ret ret; }; } // end of namespace xtd::internal
participants (1)
-
Thierry GERAUD