summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/bits/regex_compiler.h
diff options
context:
space:
mode:
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-08 14:30:22 +0000
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>2013-11-08 14:30:22 +0000
commit44f5b9b2dce46ed1b0a879dd669c1822eade8efc (patch)
treee51501c90c11733c031c148577d0f0cfcc4a7985 /libstdc++-v3/include/bits/regex_compiler.h
parente5104bca76f13f21e6901aae91acb465a2d987a7 (diff)
* include/bits/regex_automaton.h (__detail::_State): Split
non-dependent parts into new _State_base. (__detail::_NFA): Likewise for _NFA_base. Use std::move() to avoid copies when inserting _MatcherT and _StateT objects. * include/bits/regex_automaton.tcc: Move member definitions to base class. Qualify dependent names. * include/bits/regex_compiler.h (__detail::_Compiler::_M_get_nfa): Make non-const and use std::move to avoid copying. * include/bits/regex_compiler.tcc: Likewise. * include/bits/regex_executor.h (__detail::_Executor::_M_is_word): Use array, so past-the-end iterator is valid. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/bits/regex_compiler.h')
-rw-r--r--libstdc++-v3/include/bits/regex_compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/include/bits/regex_compiler.h b/libstdc++-v3/include/bits/regex_compiler.h
index 7e4e6adafd56..98141a722fb5 100644
--- a/libstdc++-v3/include/bits/regex_compiler.h
+++ b/libstdc++-v3/include/bits/regex_compiler.h
@@ -55,8 +55,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
const _TraitsT& __traits, _FlagT __flags);
std::shared_ptr<_RegexT>
- _M_get_nfa() const
- { return make_shared<_RegexT>(_M_nfa); }
+ _M_get_nfa()
+ { return make_shared<_RegexT>(std::move(_M_nfa)); }
private:
typedef _Scanner<_FwdIter> _ScannerT;