88. Inconsistency between string::insert() and string::append()

Section: [string.insert], [string.append] Status: NAD Submitter: Nico Josuttis Opened: 1998-09-29 Last modified: 2016-11-12 20:15:11 UTC

Priority: Not Prioritized

View all other issues in [string.insert].

View all issues with NAD status.


Why does

  template<class InputIterator> 
       basic_string& append(InputIterator first, InputIterator last);

return a string, while

  template<class InputIterator> 
       void insert(iterator p, InputIterator first, InputIterator last);

returns nothing ?


The LWG believes this stylistic inconsistency is not sufficiently serious to constitute a defect.