Title
redundant type cast in lib.allocator.members
Status
cd1
Section
[allocator.members]
Submitter
Markus Mauhart

Created on 2003-02-27.00:00:00 last changed 164 months ago

Messages

Date: 2010-10-21.18:28:33

Rationale:

Just a typo, this is really editorial.

Date: 2010-10-21.18:28:33

Proposed resolution:

Replace "((T*) p)" with "p".

Date: 2003-02-27.00:00:00

[allocator.members] allocator members, contains the following 3 lines:

  12 Returns: new((void *) p) T( val)
     void destroy(pointer p);
  13 Returns: ((T*) p)->~T()

The type cast "(T*) p" in the last line is redundant cause we know that std::allocator<T>::pointer is a typedef for T*.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg2491
2010-10-21 18:28:33adminsetmessages: + msg2490
2003-02-27 00:00:00admincreate