This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] Reimplment regex matcher using DFS


On 07/23/2013 03:07 PM, Tim Shen wrote:
+  inline
+  bool _Grep_matcher::
+  _M_dfs_match()
+  { return _M_dfs<true>(_M_nfa->_M_start()); }
+
+  inline
+  bool _Grep_matcher::
+  _M_dfs_search_from_first()
+  { return _M_dfs<false>(_M_nfa->_M_start()); }
This doesn't make much sense to me: if the functions are inside a *.tcc file why are marked inline? First blush seem indeed good candidates for inline, but then should be in the *.h

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]