summaryrefslogtreecommitdiff
path: root/shared/zstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/zstring.h')
-rw-r--r--shared/zstring.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/zstring.h b/shared/zstring.h
index 9c7c2245..68b72060 100644
--- a/shared/zstring.h
+++ b/shared/zstring.h
@@ -107,7 +107,11 @@ public:
static const size_t npos = static_cast<size_t>(-1);
private:
- Zstring(int); //indicates usage error
+ //detect usage errors
+ Zstring(int);
+ friend const Zstring operator+(const DefaultChar* lhs, const Zstring& rhs);
+ friend const Zstring operator+(const DefaultChar ch, const Zstring& rhs);
+
DefaultChar* data();
void initAndCopy(const DefaultChar* source, size_t length);
bgstack15