Created on 2010-08-25.00:00:00 last changed 166 months ago
Rationale:
The standard is correct as written.
[ Batavia: NAD - see rationale below ]
[ Resolution proposed by ballot comment: ]
Add a paragraph under [using] clarifying whether or not headers specified in terms of std::size_t can be used to access the typedef size_t, or whether the header <cstddef> must be included to reliably use this name.
Addresses GB-58
It is not clear whether a library header specified in terms of a typedef name makes that same typedef name available for use, or if it simply requires that the specified type is an alias of the same type, and so the typedef name cannot be used without including the specific header that defines it. For example, is the following code required to be accepted:
#include <vector> std::size_t x = 0;
Most often, this question concerns the typedefs defined in header <cstddef>
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-03-05 21:44:45 | admin | set | messages: + msg5600 |
2010-11-08 22:43:56 | admin | set | messages: + msg5314 |
2010-11-08 22:43:56 | admin | set | status: open -> nad |
2010-10-24 22:33:31 | admin | set | messages: + msg5068 |
2010-08-25 00:00:00 | admin | create |