mirror of
https://github.com/boostorg/endian.git
synced 2025-08-02 05:54:31 +02:00
Fix endian.hpp copy-and-paste error reported by Vicente Botet.
git-svn-id: http://svn.boost.org/svn/boost/sandbox/endian@49083 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
@@ -302,7 +302,7 @@ namespace boost
|
|||||||
typedef T value_type;
|
typedef T value_type;
|
||||||
# ifndef BOOST_ENDIAN_NO_CTORS
|
# ifndef BOOST_ENDIAN_NO_CTORS
|
||||||
endian() BOOST_ENDIAN_DEFAULT_CONSTRUCT
|
endian() BOOST_ENDIAN_DEFAULT_CONSTRUCT
|
||||||
# ifdef BOOST_BIG_ENDIAN
|
# ifdef BOOST_LITTLE_ENDIAN
|
||||||
endian(T val) : m_value(val) { }
|
endian(T val) : m_value(val) { }
|
||||||
# else
|
# else
|
||||||
explicit endian(T val) { detail::store_little_endian<T, sizeof(T)>(&m_value, val); }
|
explicit endian(T val) { detail::store_little_endian<T, sizeof(T)>(&m_value, val); }
|
||||||
|
Reference in New Issue
Block a user