forked from boostorg/endian
Add data() member
git-svn-id: http://svn.boost.org/svn/boost/sandbox/endian@62439 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
1 parent
22ccd7a2e4
commit
c60b7d2171
7 files changed
+237
-19
No files matched your search
@@ -119,7 +119,7 @@ namespace boost
|
||||
inline typename boost::enable_if< is_endian<Endian>, std::ostream & >::type
|
||||
operator<=( std::ostream & os, const Endian & e )
|
||||
{
|
||||
return os.write( reinterpret_cast<const char*>(&e), sizeof(e) );
|
||||
return os.write( e.data(), sizeof(e) );
|
||||
}
|
||||
|
||||
template < class Endian >
|
||||
|
||||
Reference in new issue
Block a user