Commit c7bfe7d0 authored by Thierry Geraud's avatar Thierry Geraud
Browse files

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'.



git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@646 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 13b28a69
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'.
2006-10-16 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>
Enhance xtd traits mechanism so that set of traits can be defined.
......
......@@ -187,7 +187,7 @@ namespace xtd
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 @@ namespace xtd
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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment