Opened 7 years ago
Closed 7 years ago
#11615 closed Bugs (fixed)
Boost.Move should use the qualified name for std::size_t in type_traits.hpp
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | move |
Version: | Boost 1.59.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The file boost/move/detail/typetraits.hpp uses size_t without namespace std:: twice. Once in line 473 (remove_all_extents) and once in line 1006 (aligned_union).
As our STL does not include size_t in the global namespace when <cstddef> is included, the Boost.Move does not compile straight away.
Please change these templates to
template <class T, std::size_t N> struct remove_all_extents<T[N]> ...
and
template<class T, std::size_t Len> union aligned_union ...
Best regards, Manuel
Change History (2)
comment:1 by , 7 years ago
Component: | None → move |
---|---|
Owner: | set to |
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Fixed in commit:
https://github.com/boostorg/move/commit/6e42a16dd6d747abc95c44fba17cff5e18ce0137