summaryrefslogtreecommitdiff
path: root/src/utils/smart_string.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/smart_string.hpp')
-rw-r--r--src/utils/smart_string.hpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/utils/smart_string.hpp b/src/utils/smart_string.hpp
index fcaff98..6390465 100644
--- a/src/utils/smart_string.hpp
+++ b/src/utils/smart_string.hpp
@@ -3,12 +3,18 @@
class SmartString
{
public:
- SmartString(char *c_str);
- SmartString(unsigned int size);
+ explicit SmartString(char *c_str);
+ explicit SmartString(unsigned int size);
+ SmartString(const SmartString &smart_str);
+ SmartString(SmartString &&smart_str) noexcept;
+
+ SmartString &operator=(const SmartString &smart_str);
+
+ SmartString &operator=(SmartString &&smart_str) noexcept;
~SmartString();
- operator char *() const;
+ explicit operator char *() const;
char *c_str = nullptr;
};