[v3] minor simplification to std::list

2012-03-18 Thread Jonathan Wakely
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):

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

2012-03-20 Thread Jonathan Wakely
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 objection