My first (and very small) mlc patch ever :).
Index: ChangeLog
from Ugo Jardonnet <ugo.jardonnet(a)lrde.epita.fr>
Add : mlc_is_not_const.
* mlc/cmp.hh: Fix.
cmp.hh | 7 +++++++
1 file changed, 7 insertions(+)
Index: mlc/cmp.hh
--- mlc/cmp.hh (revision 938)
+++ mlc/cmp.hh (working copy)
@@ -65,6 +65,7 @@
# define mlc_is_not_builtin(T) mlc::is_not_builtin_< T >
# define mlc_is_const(T) mlc::is_const_< T >
+# define mlc_is_not_const(T) mlc::is_not_const_< T >
# define mlc_is_reference(T) mlc::is_reference_< T >
/// \}
@@ -230,9 +231,15 @@
struct is_const_< const T > : public bexpr_<true>
{
};
+
+ template <typename T>
+ struct is_not_const_ : public not_< is_const_<T> >::bexpr
+ {
+ };
/// \}
+
/// Check whether a type is a reference.
/// \{
template <typename T>
Show replies by date