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: Manuel Freiberger <manuel.freiberger@…> 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 John Maddock, 7 years ago

Component: Nonemove
Owner: set to Ion Gaztañaga

comment:2 by Ion Gaztañaga, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.