2006-09-29 Thierry GERAUD <theo(a)tegucigalpa.lrde.epita.fr>
* xtd/valtraits.hh: Use bexpr_.
Index: xtd/valtraits.hh
===================================================================
--- xtd/valtraits.hh (revision 589)
+++ xtd/valtraits.hh (working copy)
@@ -28,6 +28,7 @@
#ifndef XTD_VALTRAITS_HH
# define XTD_VALTRAITS_HH
+# include <mlc/bexpr.hh>
// # include <xtd/traits.hh>
// # include <xtd/builtin/traits.hh>
@@ -37,16 +38,14 @@
{
template <typename T>
- struct is_binary
+ struct is_binary : public mlc::bexpr_<false>
{
- typedef mlc::false_ ret;
};
template <>
- struct is_binary <bool>
+ struct is_binary <bool> : public mlc::bexpr_<true>
{
- typedef mlc::true_ ret;
};
@@ -54,7 +53,7 @@
-# define xtd_is_binary(T) typename xtd::is_binary<T>::ret
+# define xtd_is_binary(T) xtd::is_binary<T>