Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65755 - sandbox/opaque/boost/opaque/meta_mixin
From: vicente.botet_at_[hidden]
Date: 2010-10-04 16:39:22


Author: viboes
Date: 2010-10-04 16:39:19 EDT (Mon, 04 Oct 2010)
New Revision: 65755
URL: http://svn.boost.org/trac/boost/changeset/65755

Log:
Opaque:
* Added missing file inherited_from_underlying.hpp

Added:
   sandbox/opaque/boost/opaque/meta_mixin/inherited_from_underlying.hpp (contents, props changed)

Added: sandbox/opaque/boost/opaque/meta_mixin/inherited_from_underlying.hpp
==============================================================================
--- (empty file)
+++ sandbox/opaque/boost/opaque/meta_mixin/inherited_from_underlying.hpp 2010-10-04 16:39:19 EDT (Mon, 04 Oct 2010)
@@ -0,0 +1,37 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// (C) Copyright Vicente J. Botet Escriba 2010.
+// 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/opaque for documentation.
+//
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef BOOST_OPAQUE_INHERITED_FROM_UNDERLYING_HPP
+#define BOOST_OPAQUE_INHERITED_FROM_UNDERLYING_HPP
+
+#include <boost/opaque/meta_mixin/combined_operators.hpp>
+
+namespace boost {
+namespace opaque {
+
+ template <typename T, typename Bool=bool>
+ struct inherited_from_underlying {
+ template <typename Final, typename Base>
+ struct type : Base
+ {
+ BOOST_OPAQUE_TOTALY_ORDERED1(Final,Bool)
+ BOOST_OPAQUE_INTEGER_ARITHMETIC1(Final)
+ BOOST_OPAQUE_BITWISE1(Final)
+ BOOST_OPAQUE_UNIT_STEPABLE(Final)
+ BOOST_OPAQUE_USING_UNARY_PLUS(Final)
+ BOOST_OPAQUE_USING_UNARY_MINUS(Final)
+ };
+ };
+}
+}
+
+#endif


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