Boost logo

Boost :

Subject: [boost] [Beman's endian] explicit native endianes
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2010-06-04 08:04:36

Hi Beman,

I see that there are specific classes for native endian, endian<endianness::native, ...>.

I was wondering if instead of defining a separated class we can not define endianness::native depending on the ENDIAN of the host and remove the explicit definition.

  BOOST_SCOPED_ENUM_START(endianness) { big, little, native=big }; BOOST_SCOPED_ENUM_END
  BOOST_SCOPED_ENUM_START(endianness) { big, little, native=little }; BOOST_SCOPED_ENUM_END

Will this break the design?

Vicente Juan Botet Escribá

Boost list run by bdawes at, gregod at, cpdaniel at, john at