From 2f2752cd1dd933668b35f02023df58e72728e4d7 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 9 Dec 2014 13:56:05 +0000 Subject: [PATCH] Force inline StringView::{begin,end} --- src/string.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/string.hh b/src/string.hh index b752d79d..eefe6985 100644 --- a/src/string.hh +++ b/src/string.hh @@ -72,7 +72,9 @@ public: using iterator = const char*; using reverse_iterator = std::reverse_iterator; + [[gnu::always_inline]] iterator begin() const { return m_data; } + [[gnu::always_inline]] iterator end() const { return m_data + (int)m_length; } reverse_iterator rbegin() const { return reverse_iterator{m_data + (int)m_length}; }