mirror of
https://github.com/boostorg/endian.git
synced 2025-07-29 12:07:31 +02:00
Remove "operator value_type() const noexcept" from buffers. Make the buffer ctor explicit. Buffers were requested by people who do not want automatic conversions because they want full control over conversions, and are very concerned about "efficiency".
Add "operator value_type() const noexcept" to the endian arithmetic types. These types are used by people who do want fully automatic conversions. The arithmetic types need to be drop-in replacements for the built-in arithmetic types for these users.
This commit is contained in:
@ -35,7 +35,7 @@ int cpp_main(int, char *[])
|
||||
x = 1234567890;
|
||||
|
||||
cout << " operator==(buffer, built-in)" << endl;
|
||||
bool b1(x == 1234567890);
|
||||
// bool b1(x == 1234567890);
|
||||
|
||||
// BOOST_TEST(x == 1234567890);
|
||||
cout << " done" << endl;
|
||||
|
Reference in New Issue
Block a user