forked from boostorg/endian
Endian: docs and examples improvements
git-svn-id: http://svn.boost.org/svn/boost/sandbox/endian@51855 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
1 parent
1218fc6f5c
commit
0f36e2670d
6 files changed
+133
-47
No files matched your search
@@ -39,13 +39,13 @@
|
||||
# error Platforms with CHAR_BIT != 8 are not supported
|
||||
# endif
|
||||
|
||||
# ifndef BOOST_NO_DEFAULTED_FUNCTIONS
|
||||
# define BOOST_ENDIAN_DEFAULT_CONSTRUCT = default; // C++0x
|
||||
# else
|
||||
# ifdef BOOST_NO_DEFAULTED_FUNCTIONS
|
||||
# define BOOST_ENDIAN_DEFAULT_CONSTRUCT {} // C++03
|
||||
# else
|
||||
# define BOOST_ENDIAN_DEFAULT_CONSTRUCT = default; // C++0x
|
||||
# endif
|
||||
|
||||
# if defined(BOOST_NO_DEFAULTED_FUNCTIONS) && defined(BOOST_ENDIANS_IN_UNIONS)
|
||||
# if defined(BOOST_NO_DEFAULTED_FUNCTIONS) && defined(BOOST_ENDIAN_FORCE_PODNESS)
|
||||
# define BOOST_ENDIAN_NO_CTORS
|
||||
# endif
|
||||
|
||||
|
||||
@@ -15,9 +15,10 @@
|
||||
#include <ostream>
|
||||
#include <istream>
|
||||
|
||||
// unformatted binary (as opposed to formatted character-set) input and output
|
||||
// unformatted binary (as opposed to formatted character) stream insertion
|
||||
// and extraction.
|
||||
|
||||
// Caution: Use only on streams opened with filemode std::ios_base::binary. Thus
|
||||
// Warning: Use only on streams opened with filemode std::ios_base::binary. Thus
|
||||
// unformatted binary I/O should not be with the standard streams (cout, cin, etc.)
|
||||
// since they are opened in text mode. Use on text streams may produce incorrect
|
||||
// results, such as insertion of unwanted characters or premature end-of-file.
|
||||
|
||||
Reference in new issue
Block a user