Topic: Defect Report: basic_regex ctor takes InputIterator or ForwardIterator


Author: eric@boost-consulting.com (Eric Niebler)
Date: Sun, 3 Jun 2007 15:05:04 GMT
Raw View
Looking at N2284, 28.8/3 basic_regex class template synopsis shows this
constructor:

   template <class InputIterator>
     basic_regex(InputIterator first, InputIterator last,
                 flag_type f = regex_constants::ECMAScript);

In 28.8.2/15, the constructor appears with this signature:

   template <class ForwardIterator>
     basic_regex(ForwardIterator first, ForwardIterator last,
                 flag_type f = regex_constants::ECMAScript);

ForwardIterator is probably correct, so the synopsis is wrong.

--
Eric Niebler
Boost Consulting
www.boost-consulting.com

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]