Opened 10 years ago
Closed 7 years ago
#7760 closed Bugs (fixed)
boost::decay and std::decay disagree on CV qualifiers
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | type_traits |
Version: | Boost 1.52.0 | Severity: | Problem |
Keywords: | Cc: |
Description
boost::decay is defined to only remove array-extents and add pointers to function-pointer types.
std::decay does that, plus an extra remove_cv on non-function-pointer types.
Is this intentional, or should boost be updated to match the C++11 STL spec?
Note:
See TracTickets
for help on using tickets.
Fixed in https://github.com/boostorg/type_traits/commit/d3ac8b95c4cbc8876746b573daf3fa60446cfd27