From be9da616df3826eb7c9ba7448adcdc56a97d479b Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 29 May 2015 13:35:54 +0100 Subject: Return a String in Backtrace::desc --- src/string.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string.hh') diff --git a/src/string.hh b/src/string.hh index b5ad8e5a..2108c64e 100644 --- a/src/string.hh +++ b/src/string.hh @@ -164,13 +164,13 @@ public: }; ZeroTerminatedString zstr() const { return {begin(), end()}; } -private: [[gnu::optimize(3)]] // this is recursive for constexpr reason static constexpr ByteCount strlen(const char* s) { return *s == 0 ? 0 : strlen(s+1) + 1; } +private: const char* m_data = nullptr; ByteCount m_length = 0; }; -- cgit v1.2.3