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:
Beman
2014-11-18 14:33:31 -05:00
parent 221ad3c585
commit 61d9046348
3 changed files with 26 additions and 27 deletions

View File

@ -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;