|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r62835 - sandbox/endian_ext/boost/endian
From: vicente.botet_at_[hidden]
Date: 2010-06-12 06:30:04
Author: viboes
Date: 2010-06-12 06:30:03 EDT (Sat, 12 Jun 2010)
New Revision: 62835
URL: http://svn.boost.org/trac/boost/changeset/62835
Log:
Change endian by endianess
Text files modified:
sandbox/endian_ext/boost/endian/domain_map.hpp | 2 +-
sandbox/endian_ext/boost/endian/endian.hpp | 27 ++++++++++++++++++++++-----
2 files changed, 23 insertions(+), 6 deletions(-)
Modified: sandbox/endian_ext/boost/endian/domain_map.hpp
==============================================================================
--- sandbox/endian_ext/boost/endian/domain_map.hpp (original)
+++ sandbox/endian_ext/boost/endian/domain_map.hpp 2010-06-12 06:30:03 EDT (Sat, 12 Jun 2010)
@@ -26,7 +26,7 @@
namespace boost {
-namespace endian {
+namespace endianness {
namespace endian_detail {
Modified: sandbox/endian_ext/boost/endian/endian.hpp
==============================================================================
--- sandbox/endian_ext/boost/endian/endian.hpp (original)
+++ sandbox/endian_ext/boost/endian/endian.hpp 2010-06-12 06:30:03 EDT (Sat, 12 Jun 2010)
@@ -19,24 +19,34 @@
namespace boost {
+# ifdef BOOST_INTEGER_ENDIAN_USES_ENDIANNESS
+ // endian class template and specializations ---------------------------------------//
# ifdef BOOST_BIG_ENDIAN
BOOST_SCOPED_ENUM_START(endianness) { big, little, middle, mixed, native=big }; BOOST_SCOPED_ENUM_END
# else
BOOST_SCOPED_ENUM_START(endianness) { big, little, middle, mixed, native=little }; BOOST_SCOPED_ENUM_END
# endif
+ const BOOST_SCOPED_ENUM_START(endianness) big_endian = endianness::big;
+ const BOOST_SCOPED_ENUM_START(endianness) little_endian = endianness::little;
+ const BOOST_SCOPED_ENUM_START(endianness) middle_endian = endianness::middle;
+ const BOOST_SCOPED_ENUM_START(endianness) mixed_endian = endianness::mixed;
+ const BOOST_SCOPED_ENUM_START(endianness) native_endian = endianness::native;
+#else
+
+namespace endianness {
+
-namespace endian {
struct big {
- static const BOOST_SCOPED_ENUM(endianness) value= endianness::big;
+ //~ static const BOOST_SCOPED_ENUM(endianness) value= endianness::big;
};
struct little {
- static const BOOST_SCOPED_ENUM(endianness) value= endianness::little;
+ //~ static const BOOST_SCOPED_ENUM(endianness) value= endianness::little;
};
struct middle {
- static const BOOST_SCOPED_ENUM(endianness) value= endianness::middle;
+ //~ static const BOOST_SCOPED_ENUM(endianness) value= endianness::middle;
};
struct mixed {
- static const BOOST_SCOPED_ENUM(endianness) value= endianness::mixed;
+ //~ static const BOOST_SCOPED_ENUM(endianness) value= endianness::mixed;
};
# ifdef BOOST_BIG_ENDIAN
typedef big native ;
@@ -46,6 +56,13 @@
}
+ typedef endianness::big big_endian;
+ typedef endianness::little little_endian;
+ typedef endianness::middle middle_endian;
+ typedef endianness::mixed mixed_endian;
+ typedef endianness::native native_endian;
+# endif
+
} // namespace boost
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