This website requires JavaScript.
Explore
Help
Sign In
boostorg
/
endian
Watch
1
Star
0
Fork
1
You've already forked endian
mirror of
https://github.com/boostorg/endian.git
synced
2026-07-07 09:00:54 +02:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
Files
d339470e6e90e52ca3cd595c2387b2585f3774dc
endian
/
include
/
boost
T
History
Beman
d339470e6e
Remove "explicit" from Endian type constructors. Rationale: Having to write "cntr.insert(big_int32_t(value))" instead of "cntr.insert(value)" gets old fast when you are writing application code and the use case arises more or less continuously. Additionally, the use of an endian type is an implementation detail that should not leak into the application code that needs to create values of the type. Furthermore, the ambiguities that caused the constructors to be made explicit no longer occur; they were eliminated when BOOST_MINIMAL_INTEGER_COVER_OPERATORS was introduced to removed a dependency on boost/operators.hpp. If an ambiguity does arise, it is easy to clear via a static_cast or a function-style cast.
2013-09-06 10:36:54 -04:00
..
endian
Remove "explicit" from Endian type constructors. Rationale: Having to write "cntr.insert(big_int32_t(value))" instead of "cntr.insert(value)" gets old fast when you are writing application code and the use case arises more or less continuously. Additionally, the use of an endian type is an implementation detail that should not leak into the application code that needs to create values of the type. Furthermore, the ambiguities that caused the constructors to be made explicit no longer occur; they were eliminated when BOOST_MINIMAL_INTEGER_COVER_OPERATORS was introduced to removed a dependency on boost/operators.hpp. If an ambiguity does arise, it is easy to clear via a static_cast or a function-style cast.
2013-09-06 10:36:54 -04:00