Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70098 - in sandbox/enums/boost/enums: . mpl
From: vicente.botet_at_[hidden]
Date: 2011-03-17 20:32:17


Author: viboes
Date: 2011-03-17 20:32:16 EDT (Thu, 17 Mar 2011)
New Revision: 70098
URL: http://svn.boost.org/trac/boost/changeset/70098

Log:
Enums: added missing files
Added:
   sandbox/enums/boost/enums/mpl.hpp (contents, props changed)
   sandbox/enums/boost/enums/mpl/not_equal_to.hpp (contents, props changed)

Added: sandbox/enums/boost/enums/mpl.hpp
==============================================================================
--- (empty file)
+++ sandbox/enums/boost/enums/mpl.hpp 2011-03-17 20:32:16 EDT (Thu, 17 Mar 2011)
@@ -0,0 +1,32 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// (C) Copyright Vicente J. Botet Escriba 2011.
+// Distributed under the Boost
+// Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or
+// copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+// See http://www.boost.org/libs/enums for documentation.
+//
+//////////////////////////////////////////////////////////////////////////////
+/*!
+ \file
+ \brief
+ Include all the files of the MPL Enum Framework.
+ */
+
+#ifndef BOOST_ENUMS_MPL_HPP
+#define BOOST_ENUMS_MPL_HPP
+
+#include <boost/enums/mpl/enum_c.hpp>
+#include <boost/enums/mpl/enum_c_tag.hpp>
+#include <boost/enums/mpl/enum_range_c.hpp>
+#include <boost/enums/mpl/comparison.hpp>
+#include <boost/enums/mpl/greater.hpp>
+#include <boost/enums/mpl/greater_equal.hpp>
+#include <boost/enums/mpl/less.hpp>
+#include <boost/enums/mpl/less_equal.hpp>
+#include <boost/enums/mpl/numeric_cast.hpp>
+
+
+#endif // BOOST_ENUMS_MPL_HPP

Added: sandbox/enums/boost/enums/mpl/not_equal_to.hpp
==============================================================================
--- (empty file)
+++ sandbox/enums/boost/enums/mpl/not_equal_to.hpp 2011-03-17 20:32:16 EDT (Thu, 17 Mar 2011)
@@ -0,0 +1,45 @@
+// not_equal_to.hpp
+//
+//////////////////////////////////////////////////////////////////////////////
+//
+// (C) Copyright Vicente J. Botet Escriba 2011.
+// Distributed under the Boost
+// Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or
+// copy at http://www.boost.org/LICENSE_1_0.txt)
+//
+// See http://www.boost.org/libs/enums for documentation.
+//
+// Adapted from libcxx tests
+//
+//////////////////////////////////////////////////////////////////////////////
+
+
+#ifndef BOOST_ENUMS_MPL_NOT_EQUAL_TO_HPP
+#define BOOST_ENUMS_MPL_NOT_EQUAL_TO_HPP
+
+#include <boost/enums/mpl/enum_c_tag.hpp>
+#include <boost/mpl/integral_c.hpp>
+#include <boost/mpl/not_equal_to.hpp>
+
+namespace boost
+{
+ namespace mpl
+ {
+
+ //! \c not_equal_to_impl specialization for \c enum_c_tag
+ template<>
+ struct not_equal_to_impl< enum_c_tag,enum_c_tag >
+ {
+ template< typename E1, typename E2 > struct apply
+ : not_equal_to<
+ integral_c<typename E1::underlying_type, (typename E1::underlying_type)(E1::value)>,
+ integral_c<typename E2::underlying_type, (typename E2::underlying_type)(E2::value)>
+ >
+ {
+ };
+ };
+ }
+}
+
+#endif // BOOST_ENUMS_MPL_EQUAL_TO_HPP


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk