Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74226 - in sandbox/endian: boost/endian boost/endian/detail libs/endian/example libs/endian/test/msvc10 libs/endian/test/msvc10/binary_stream_example libs/endian/test/msvc10/binary_stream_test libs/endian/test/msvc10/endian_hello_world
From: bdawes_at_[hidden]
Date: 2011-09-04 13:34:54


Author: bemandawes
Date: 2011-09-04 13:34:53 EDT (Sun, 04 Sep 2011)
New Revision: 74226
URL: http://svn.boost.org/trac/boost/changeset/74226

Log:
Remove tests and examples not part of proposed library. Also turn off mistaken MSVC warnings.
Removed:
   sandbox/endian/libs/endian/example/endian_hello_world.cpp
   sandbox/endian/libs/endian/test/msvc10/binary_stream_example/
   sandbox/endian/libs/endian/test/msvc10/binary_stream_test/
   sandbox/endian/libs/endian/test/msvc10/endian_hello_world/
Text files modified:
   sandbox/endian/boost/endian/detail/cover_operators.hpp | 9 +++++++++
   sandbox/endian/boost/endian/integers.hpp | 9 +++++++++
   sandbox/endian/libs/endian/test/msvc10/endian.sln | 18 ------------------
   3 files changed, 18 insertions(+), 18 deletions(-)

Modified: sandbox/endian/boost/endian/detail/cover_operators.hpp
==============================================================================
--- sandbox/endian/boost/endian/detail/cover_operators.hpp (original)
+++ sandbox/endian/boost/endian/detail/cover_operators.hpp 2011-09-04 13:34:53 EDT (Sun, 04 Sep 2011)
@@ -19,6 +19,11 @@
 #ifndef BOOST_INTEGER_COVER_OPERATORS_HPP
 #define BOOST_INTEGER_COVER_OPERATORS_HPP
 
+#if defined(_MSC_VER)
+# pragma warning(push)
+# pragma warning(disable:4365) // conversion ... signed/unsigned mismatch
+#endif
+
 # ifndef BOOST_MINIMAL_INTEGER_COVER_OPERATORS
 # include <boost/operators.hpp>
 # endif
@@ -108,4 +113,8 @@
   } // namespace endian
 } // namespace boost
 
+#if defined(_MSC_VER)
+# pragma warning(pop)
+#endif
+
 #endif // BOOST_INTEGER_COVER_OPERATORS_HPP

Modified: sandbox/endian/boost/endian/integers.hpp
==============================================================================
--- sandbox/endian/boost/endian/integers.hpp (original)
+++ sandbox/endian/boost/endian/integers.hpp 2011-09-04 13:34:53 EDT (Sun, 04 Sep 2011)
@@ -21,6 +21,11 @@
 #ifndef BOOST_ENDIAN_HPP
 #define BOOST_ENDIAN_HPP
 
+#if defined(_MSC_VER)
+# pragma warning(push)
+# pragma warning(disable:4365) // conversion ... signed/unsigned mismatch
+#endif
+
 #ifdef BOOST_ENDIAN_LOG
 # include <iostream>
 #endif
@@ -428,4 +433,8 @@
 # pragma pack(pop)
 #endif
 
+#if defined(_MSC_VER)
+# pragma warning(pop)
+#endif
+
 #endif // BOOST_ENDIAN_HPP

Deleted: sandbox/endian/libs/endian/example/endian_hello_world.cpp
==============================================================================
--- sandbox/endian/libs/endian/example/endian_hello_world.cpp 2011-09-04 13:34:53 EDT (Sun, 04 Sep 2011)
+++ (empty file)
@@ -1,39 +0,0 @@
-// endian_io_test.cpp ----------------------------------------------------------------//
-
-// Copyright Beman Dawes, 2009
-
-// Distributed under the Boost Software License, Version 1.0.
-// See http://www.boost.org/LICENSE_1_0.txt
-
-// See library home page at http://www.boost.org/libs/endian
-
-#include <boost/endian/detail/disable_warnings.hpp>
-
-#include <boost/endian/integers.hpp>
-#include <boost/io/detail/bin_manip.hpp>
-#include <iostream>
-
-using namespace boost;
-using namespace boost::endian;
-
-int main()
-{
- int_least32_t v = 0x31323334L; // = ASCII { '1', '2', '3', '4' }
- // value chosen to work on text stream
- big32_t b(v);
- little32_t l(v);
-
- std::cout << std::hex << "Hello, endian world!\n\n";
-
- std::cout << "hex stream output: int_least32_t=" << v
- << ", big32_t=" << b << ", little32_t=" << l << '\n';
- std::cout << "bin stream output: int_least32_t=" << bin(v)
- << ", big32_t=" << bin(b) << ", little32_t=" << bin(l) << '\n';
-}
-
-// Output on a little endian machine:
-//
-// Hello, endian world!
-//
-// hex stream output: int_least32_t=31323334, big32_t=31323334, little32_t=31323334
-// bin stream output: int_least32_t=4321, big32_t=1234, little32_t=4321

Modified: sandbox/endian/libs/endian/test/msvc10/endian.sln
==============================================================================
--- sandbox/endian/libs/endian/test/msvc10/endian.sln (original)
+++ sandbox/endian/libs/endian/test/msvc10/endian.sln 2011-09-04 13:34:53 EDT (Sun, 04 Sep 2011)
@@ -11,12 +11,6 @@
 EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "endian_example", "endian_example\endian_example.vcxproj", "{8638A3D8-D121-40BF-82E5-127F1B1B2CB2}"
 EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "endian_hello_world", "endian_hello_world\endian_hello_world.vcxproj", "{1AAEBB4E-501E-417E-9531-04469AF5DD8B}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "binary_stream_test", "binary_stream_test\binary_stream_test.vcxproj", "{1382D085-FF3F-4573-8709-E10D3D74D620}"
-EndProject
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bin_manip_example", "binary_stream_example\binary_stream_example.vcxproj", "{06736C67-6305-4A9F-8D10-850FD0CE907D}"
-EndProject
 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "conversion_test", "conversion_test\conversion_test.vcxproj", "{9FA33B0B-2B00-49E8-A892-E049D86076A9}"
 EndProject
 Global
@@ -45,18 +39,6 @@
                 {8638A3D8-D121-40BF-82E5-127F1B1B2CB2}.Debug|Win32.Build.0 = Debug|Win32
                 {8638A3D8-D121-40BF-82E5-127F1B1B2CB2}.Release|Win32.ActiveCfg = Release|Win32
                 {8638A3D8-D121-40BF-82E5-127F1B1B2CB2}.Release|Win32.Build.0 = Release|Win32
- {1AAEBB4E-501E-417E-9531-04469AF5DD8B}.Debug|Win32.ActiveCfg = Debug|Win32
- {1AAEBB4E-501E-417E-9531-04469AF5DD8B}.Debug|Win32.Build.0 = Debug|Win32
- {1AAEBB4E-501E-417E-9531-04469AF5DD8B}.Release|Win32.ActiveCfg = Release|Win32
- {1AAEBB4E-501E-417E-9531-04469AF5DD8B}.Release|Win32.Build.0 = Release|Win32
- {1382D085-FF3F-4573-8709-E10D3D74D620}.Debug|Win32.ActiveCfg = Debug|Win32
- {1382D085-FF3F-4573-8709-E10D3D74D620}.Debug|Win32.Build.0 = Debug|Win32
- {1382D085-FF3F-4573-8709-E10D3D74D620}.Release|Win32.ActiveCfg = Release|Win32
- {1382D085-FF3F-4573-8709-E10D3D74D620}.Release|Win32.Build.0 = Release|Win32
- {06736C67-6305-4A9F-8D10-850FD0CE907D}.Debug|Win32.ActiveCfg = Debug|Win32
- {06736C67-6305-4A9F-8D10-850FD0CE907D}.Debug|Win32.Build.0 = Debug|Win32
- {06736C67-6305-4A9F-8D10-850FD0CE907D}.Release|Win32.ActiveCfg = Release|Win32
- {06736C67-6305-4A9F-8D10-850FD0CE907D}.Release|Win32.Build.0 = Release|Win32
                 {9FA33B0B-2B00-49E8-A892-E049D86076A9}.Debug|Win32.ActiveCfg = Debug|Win32
                 {9FA33B0B-2B00-49E8-A892-E049D86076A9}.Debug|Win32.Build.0 = Debug|Win32
                 {9FA33B0B-2B00-49E8-A892-E049D86076A9}.Release|Win32.ActiveCfg = Release|Win32


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