From 675545116809012066
X-Google-Thread: f78e5,8a13e24efebcd848,start
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news2.google.com!news2.google.com!news.germany.com!news.tu-darmstadt.de!newsfeed.hanau.net!newsfeed.vmunix.org!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!stump.algebra.com!devnull
From: bop@gmb.dk ("Bo Persson")
Newsgroups: comp.std.c++
Subject: Defect Report: Inconsistent definition of basic_regex constructor
Date: Tue, 23 Jan 2007 18:51:54 GMT
Lines: 29
Sender: mail2news@demon.net
Approved: fjh@cs.mu.oz.au (Fergus Henderson , moderator of comp.std.c++)
Message-ID: <51n3d2F1l580bU1@mid.individual.net>
NNTP-Posting-Host: news.news.demon.net
X-Trace: news.demon.co.uk 1169578322 25223 158.152.254.254 (23 Jan 2007 18:52:02 GMT)
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: Tue, 23 Jan 2007 18:52:02 +0000 (UTC)
X-Original-To: std-c++@mailman.ucar.edu
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Priority: 3
X-Orig-X-Trace: individual.net fsdeMmaNGdA+Bwl/h7meQA8i5ie9WbKOwUf9RmvI9+Heo5tfVF
X-RFC2646: Format=Flowed; Original
X-Virus-Scanned: amavisd-new at csse.unimelb.edu.au
X-MSMail-Priority: Normal
X-Originating-IP: 130.133.1.2
X-Received: (from fjh@localhost)
	by mulga.csse.unimelb.edu.au (8.13.8+Sun/8.13.8/Submit) id l0NIps7Y010587;
	Wed, 24 Jan 2007 05:51:54 +1100 (EST)
X-Path: comp-std-cpp-robomod!not-for-mail
X-Delivered-To: std-c++@mailman.ucar.edu
X-Authentication-Warning: mulga.csse.unimelb.edu.au: fjh set sender to devnull@stump.algebra.com using -f
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-Newsgroups: comp.std.c++
Xref: g2news2.google.com comp.std.c++:5442

Section 28.8 [re.regex] lists a constructor

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

However, in section 28.8.2/15 [re.regex.construct], this constructor takes a 
pair of ForwardIterator.


Proposed resolution:

One of

1) If an InputIterator is sufficient to construct a basic_regex, change 
[re.regex.construct] to show that.

2) Otherwise change [re.regex] to require a ForwardIterator.


Bo Persson


---
[ 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                      ]



