From: Tim Shen Date: Tue, 3 Dec 2013 10:04:32 +0000 (+0000) Subject: regex_compiler.h: Add todo comment. X-Git-Tag: releases/gcc-4.9.0~2315 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb5a6c6939f619d1a05293ea540a41e07a7d6200;p=thirdparty%2Fgcc.git regex_compiler.h: Add todo comment. 2013-12-03 Tim Shen * regex_compiler.h: Add todo comment. * regex_executor.tcc: Likewise. From-SVN: r205624 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index aea11172db9c..4c564e898bb8 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2013-12-03 Tim Shen + + * regex_compiler.h: Add todo comment. + * regex_executor.tcc: Likewise. + 2013-11-29 Matthias Klose * testsuite/experimental/string_view/requirements/exception, diff --git a/libstdc++-v3/include/bits/regex_compiler.h b/libstdc++-v3/include/bits/regex_compiler.h index b9f81272bb9d..5759d48c5e5a 100644 --- a/libstdc++-v3/include/bits/regex_compiler.h +++ b/libstdc++-v3/include/bits/regex_compiler.h @@ -237,6 +237,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION }; /// Matches a character range (bracket expression) + // TODO: Convert used _M_flags fields to template parameters, including + // collate and icase. Avoid using std::set, could use flat_set + // (sorted vector and binary search) instead; use an fixed sized (256) + // vector for char specialization if necessary. template struct _BracketMatcher { diff --git a/libstdc++-v3/include/bits/regex_executor.tcc b/libstdc++-v3/include/bits/regex_executor.tcc index 22fd67cfa3b4..150adb4f2df5 100644 --- a/libstdc++-v3/include/bits/regex_executor.tcc +++ b/libstdc++-v3/include/bits/regex_executor.tcc @@ -162,6 +162,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION return false; } + // TODO: Use a function vector to dispatch, instead of using switch-case. template template