Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Pablo Halpern <phalpern@halpernwightsoftware.com> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: std::allocator_traits<std::allocator<T>>::propagate_on_container_move_assignment |
| Date | 2011-12-01 14:02 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <0e8e05c8-d8ef-4dd0-a3be-e1bbd1ac174d@r9g2000vbw.googlegroups.com> (permalink) |
| References | <c0e46bf3-1644-4478-b3cf-8c2208926e10@q35g2000prh.googlegroups.com> <c734e593-908f-42c5-a2fb-4f3af3704489@o5g2000yqa.googlegroups.com> <09678572-2f77-4c07-bfb3-3223aab5fe55@j36g2000prh.googlegroups.com> |
This defect has been submitted as issue #2103 in the active issues list. Thanks for writing it up. -Pablo On Nov 8, 2:32 pm, Ai Azuma<ai.az...@gmail.com> wrote: > ===== beginning of the defect report ===== > > Affected section of the standard: > 20.6.9 [default.allocator] > > Description of the problem: > `std::allocator_traits<std::allocator<T>>::propagate_on_container_move_assignment::value' > is specified as `false', according to (20.6.9) and (20.6.8.1). > However, according to (23.2.1), this specification leads to > the unneeded requirements > (MoveInsertable and MoveAssignable of the value type) > on the move assignment operator of containers > with the default allocator. > > Proposed resolution: > Either of the following two changes; > > (1)adding the nested typedef like > `typedef std::true_type propagate_on_container_move_assignment;' > in the definition of std::allocator class template, > > (2)adding the explicit partial specialization of > `std::allocator_traits' class template for `std::allocator' > class template, in which `propagate_on_container_move_assignment' > nested typedef is specified as `std::true_type'. > > ===== end of the defect report ===== > > Thank you. > > -- > [ comp.std.c++ is moderated. To submit articles, try posting with your ] > [ newsreader. If that fails, use mailto:std-cpp-sub...@vandevoorde.com ] > [ --- Please see the FAQ before posting. --- ] > [ FAQ:http://www.comeaucomputing.com/csc/faq.html ] -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Find similar
std::allocator_traits<std::allocator<T>>::propagate_on_container_move_assignment Ai Azuma<ai.azuma@gmail.com> - 2011-11-02 11:16 -0700
Re: std::allocator_traits<std::allocator<T>>::propagate_on_container_move_assignment Pablo Halpern <phalpern@halpernwightsoftware.com> - 2011-11-03 17:10 -0700
Re: std::allocator_traits<std::allocator<T>>::propagate_on_container_move_assignment Ai Azuma<ai.azuma@gmail.com> - 2011-11-08 11:32 -0800
Re: std::allocator_traits<std::allocator<T>>::propagate_on_container_move_assignment Pablo Halpern <phalpern@halpernwightsoftware.com> - 2011-12-01 14:02 -0800
csiph-web