aboutsummaryrefslogtreecommitdiff
path: root/backend/String.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 22:47:42 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-01 22:47:42 +0100
commit07796bea15a2d5f43766f062379b63fc9e9e1b5d (patch)
tree2d398f161a9a933176f50779ff164e76c3871f43 /backend/String.h
parentaf76b9a0ae58dc8c87548053a5bc310ad6be25ce (diff)
WIP consumables
Diffstat (limited to 'backend/String.h')
-rw-r--r--backend/String.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/String.h b/backend/String.h
index bca8944..4fade62 100644
--- a/backend/String.h
+++ b/backend/String.h
@@ -10,6 +10,8 @@ public:
String(const char * data, size_t size);
String(const String &);
String(String &&);
+ String & operator = (const String &);
+ String & operator = (String &&);
~String();
public:
static String va_fmt(va_list args, const char * fmt);
@@ -22,8 +24,8 @@ public:
bool empty() const;
public:
- String & operator = (const String &);
- String & operator = (String &&);
+ friend bool operator == (const String &, const String &);
+ friend bool operator != (const String &, const String &);
private:
void set(const char * data);