diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-05-29 13:35:54 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-05-29 13:35:54 +0100 |
| commit | be9da616df3826eb7c9ba7448adcdc56a97d479b (patch) | |
| tree | cf34cdb0c669f40a1fe28e4d949fb397fde1065a /src/string.hh | |
| parent | 3c86484c4ed284fa8f1feff380959f5b52b264c6 (diff) | |
Return a String in Backtrace::desc
Diffstat (limited to 'src/string.hh')
| -rw-r--r-- | src/string.hh | 2 |
1 files changed, 1 insertions, 1 deletions
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; }; |
