summaryrefslogtreecommitdiff
path: root/src/strings/literal.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/literal.hpp')
-rw-r--r--src/strings/literal.hpp5
1 files changed, 3 insertions, 2 deletions
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<LString, AString, LPair>
{
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<LString, AString, LPair>;
public:
iterator begin() const;