Issue Details (XML | Word | Printable)

Key: STDCXX-979
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Travis Vitek
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

__rw_is_scalar or is_scalar need to take std::nullptr_t into account

Created: 02/Jul/08 01:42 AM   Updated: 11/Jul/09 12:07 AM
Return to search
Component/s: TR1.4 - Metaprogramming and Type Traits
Affects Version/s: 4.3.x
Fix Version/s: 4.3.x

Time Tracking:
Original Estimate: 1h
Original Estimate - 1h
Remaining Estimate: 1h
Remaining Estimate - 1h
Time Spent: Not Specified
Remaining Estimate - 1h

Severity: Incorrect Behavior


 Description  « Hide
The standard requires that std::is_scalar<std::nullptr_t>::value evaluate to true. The current implementation doesn't consider the std::nullptr_t type because it is not implemented yet.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 18/Jul/08 03:57 AM
Changed both Affects Version/s and Fix Version/s from 4.3.0 to 4.3.x since 4.3.0 hasn't been released yet. If this is fixed in 4.3.0, it doesn't make sense to file it against the same version. If not, we'll need to change Affects Version/s back to 4.3.0 and Fix Version/s to the next version after 4.3.0 that we plan to fix it in.

Martin Sebor added a comment - 18/Jul/08 03:59 AM
The solution should be straightforward: add a config test for nullptr_t and conditionally implement is_scalar<std::nullptr_t> when the test detects support for the type.

Travis Vitek added a comment - 18/Jul/08 03:00 PM
Should we not provide a definition of nullptr_t and nullptr for those systems that don't provide it natively?

Martin Sebor added a comment - 18/Jul/08 03:06 PM
I don't think we can make it behave the way the real deal is supposed to.