
https://svn.lrde.epita.fr/svn/oln/trunk/metalic Index: ChangeLog from Thierry Geraud <thierry.geraud@lrde.epita.fr> Add reference check. * mlc/cmp.hh (mlc_is_reference, is_reference_): New. cmp.hh | 15 +++++++++++++++ 1 files changed, 15 insertions(+) Index: mlc/cmp.hh --- mlc/cmp.hh (revision 932) +++ 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_reference(T) mlc::is_reference_< T > /// \} @@ -232,6 +233,20 @@ /// \} + /// Check whether a type is a reference. + /// \{ + template <typename T> + struct is_reference_ : public bexpr_<false> + { + }; + + template <typename T> + struct is_reference_< T& > : public bexpr_<true> + { + }; + /// \} + + /// Check whether a type is a builtin type. /// \{