Boost logo

Boost :

Subject: Re: [boost] [boost::endian] Summary of discussion #1
From: Tomas Puverle (tomas.puverle_at_[hidden])
Date: 2010-06-04 10:41:37


> Tomas has rightly kept endianness from networking because it can be used for >
graphics, market data, etc. In my own
> code, I used "byte_order" as the namespace.

Agreed.

Endianness simply applies to converting data from one byte/bit orientation to
another.

> > Without the explicit, operations on PackedInteger, such as
> > comparison, will have ambiguity.
>
> I haven't looked into it, so I'll take your word for it. I thought it was to
prevent implicit construction
> from native types on general principles.

Which is one the problems having the "object-based" interface with automatic
conversion operators on types. And from there is just keeps getting uglier.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk