Closed viboes closed 5 years ago
Note that endian_arithmetic
is already implicitly constructible from T
.
Why endian_arithmetic
implicitly constructible from T
while endian_buffer
is not?
This all seems to be by design. endian_buffer
has no implicit conversions, endian_arithmetic
does.
Wiven that the conversion from T is explicit, the assignment shouldn't be allowed.
Either the conversion is implicit and the assignment is an optimization, or the conversion is explicit and the assignment should be removed.