525: Add the mlc::assert_ok_ shortcut.

7 Sep
2006
7 Sep
'06
2:50 p.m.
2006-09-07 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> * mlc/cmp.hh (assert_ok_): New shortcut. Index: mlc/cmp.hh =================================================================== --- mlc/cmp.hh (revision 524) +++ mlc/cmp.hh (working copy) @@ -198,6 +198,11 @@ mlc_is_not_a(T, mlc::not_ok) >::bexpr { }; + + template <typename T, typename err = no_error_message> + struct assert_ok_ : public assert_< is_ok_<T>, err > + { + }; /// \}
6951
Age (days ago)
6951
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thierry GERAUD