Boost logo

Boost :

Subject: [boost] Boost.Endian - endian_buffer requirements
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2017-01-25 18:04:39


Hi,

I wanted to put an Int wrapper inside a endian_buffer and I have some
compiler errors depending on whether it is aligned ort not.

http://melpon.org/wandbox/permlink/k52wH2A7yagL2vMP

I was expecting that the endian_buffer would make abstraction of the
wrapped type and consider it just as a sequence of bytes, but it seems
that it instead works only for some builtin integral.

Am I missing something?
Was this restriction intended?
Could this restriction be removed and if yes, how?

Best,
Vicente


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