re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access...
authorTim Shen <timshen@google.com>
Mon, 19 Jan 2015 23:00:13 +0000 (23:00 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Mon, 19 Jan 2015 23:00:13 +0000 (23:00 +0000)
commite5f3553320cd121e7952ee7b8ee5cad696336541
treebb52ff3db7595623a6812207d0f1160673585f9e
parent60c176fb459c7780f9cb711e2427e41dca12a54a
re PR libstdc++/64649 (regex_traits::lookup_classname() only works with random access iterators)

PR libstdc++/64649
* include/bits/regex.tcc (regex_traits<>::lookup_collatename,
regex_traits<>::lookup_classname): Support forward iterators.
* testsuite/28_regex/traits/char/lookup_classname.cc: New testcases.
* testsuite/28_regex/traits/char/lookup_collatename.cc: New testcase.

From-SVN: r219866
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/regex.tcc
libstdc++-v3/testsuite/28_regex/traits/char/lookup_classname.cc
libstdc++-v3/testsuite/28_regex/traits/char/lookup_collatename.cc