Endian: add endian_io.hpp, endian_hello_world.cpp, scoped_enum_emulation_test.cpp

git-svn-id: http://svn.boost.org/svn/boost/sandbox/endian@51735 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
bemandawes committed 2009-03-12 15:35:35 +00:00
1 parent 7c671f857c
commit f0e141f087
13 files changed
+895 -41

No files matched your search

@@ -0,0 +1,24 @@
// 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/integer/endian_io.hpp>
#include <iostream>
using namespace boost;
using namespace boost::integer;
int main()
{
long value = 3224115L; // integer value of ASCII { '1', '2', '3' }
big24_t big( value );
little24_t little( value );
std::cout << "Hello, endian world "<< value << ' ' << big << ' ' << little << '\n';
}