This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] minor simplification to std::list


On 18 March 2012 23:27, Jonathan Wakely wrote:
> Now that G++ supports it we can use a NSDMI for std::list::_M_size to
> avoid needing conditional compilation to set it in the constructors.
> I think the attached patch is an improvement so I plan to commit it to
> trunk soon unless I hear objections.
>
> ? ? ? ?* include/bits/stl_list.h (list::_M_size): Use NSDMI.
> ? ? ? ?* testsuite/23_containers/list/requirements/dr438/assign_neg.cc:
> ? ? ? ?Adjust line numbers.
> ? ? ? ?* testsuite/23_containers/list/requirements/dr438/
> ? ? ? ?constructor_1_neg.cc: Likewise.
> ? ? ? ?* testsuite/23_containers/list/requirements/dr438/
> ? ? ? ?constructor_2_neg.cc: Likewise.
> ? ? ? ?* testsuite/23_containers/list/requirements/dr438/insert_neg.cc:
> ? ? ? ?Likewise.
>
> Tested x86_64.

Committed to trunk.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]