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

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

Priority: Not Prioritized

View all other issues in [string.insert].

View all issues with NAD status.

Discussion:

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 ?

Rationale:

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