From 25070b355b8a0394c1fbd9cf82c44752b5a8b8c3 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 17 Jul 2014 16:50:40 -0700 Subject: Add dir annoyances --- src/strings/literal.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/strings/literal.hpp') diff --git a/src/strings/literal.hpp b/src/strings/literal.hpp index 5e27a9f..67bd317 100644 --- a/src/strings/literal.hpp +++ b/src/strings/literal.hpp @@ -32,11 +32,12 @@ namespace strings class LString : public _crtp_string { iterator _b, _e; - // optional - const RString *_base; private: LString(const char *b, const char *e); friend LString operator "" _s(const char *, size_t); + // for tail slicing + LString(const char *b, const char *e, const RString *) : LString(b, e) {} + friend class _crtp_string; public: iterator begin() const; -- cgit v1.2.3-60-g2f50