Opened 7 years ago

Closed 7 years ago

#12124 closed Bugs (fixed)

[TypeTraits] is_const should use std::size_t instead of size_t.

Reported by: anonymous Owned by: John Maddock
Milestone: To Be Determined Component: type_traits
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

Hello,

The ARMCC compiler raises the error

boost/type_traits/is_const.hpp(38): error: #20: identifier "size_t" is undefined

It works, if I change size_t to std::size_t. I have no clue, how the typedef is exactly imported. IMHO, it would be cleaner to also include <cstddef> from is_const.hpp.

Best regards, Manuel

Change History (2)

comment:1 by manuel.freiberger@…, 7 years ago

Just noticed that the same problem applies to boost/type_traits/is_volatile.hpp(38).

comment:2 by John Maddock, 7 years ago

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