Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarDirectives.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarDirectives.hpp')
-rw-r--r--source/core/StarDirectives.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/core/StarDirectives.hpp b/source/core/StarDirectives.hpp
index 92dfd46..e954387 100644
--- a/source/core/StarDirectives.hpp
+++ b/source/core/StarDirectives.hpp
@@ -15,7 +15,7 @@ struct Directives {
ImageOperation operation;
String string;
- Entry(ImageOperation&& operation, String&& string);
+ Entry(ImageOperation&& newOperation, String&& newString);
};
Directives();
@@ -40,8 +40,6 @@ public:
inline bool empty() const;
bool compare(DirectivesGroup const& other) const;
- inline bool operator==(DirectivesGroup const& other) const;
- inline bool operator!=(DirectivesGroup const& other) const;
void append(Directives const& other);
DirectivesGroup& operator+=(Directives const& other);
@@ -58,6 +56,9 @@ public:
void applyExistingImage(Image& image) const;
inline size_t hash() const;
+
+ friend bool operator==(DirectivesGroup const& a, DirectivesGroup const& b);
+ friend bool operator!=(DirectivesGroup const& a, DirectivesGroup const& b);
private:
void buildString(String& string, const DirectivesGroup& directives) const;
@@ -65,6 +66,7 @@ private:
size_t m_count;
};
+
template <>
struct hash<DirectivesGroup> {
size_t operator()(DirectivesGroup const& s) const;