Copy and move assignments for EGDescription

This commit is contained in:
Jean Pierre Cimalando 2020-09-23 22:36:44 +02:00
parent a1a68e115c
commit 23b7f50760
2 changed files with 5 additions and 1 deletions

View file

@ -38,6 +38,8 @@ public:
CCMap(CCMap&&) = default;
CCMap(const CCMap&) = default;
~CCMap() = default;
CCMap& operator=(CCMap&&) = default;
CCMap& operator=(const CCMap&) = default;
/**
* @brief Returns the held object at the index, or a default value if not present
@ -105,7 +107,7 @@ private:
// typename std::vector<std::pair<int, ValueType>>::iterator begin() { return container.begin(); }
// typename std::vector<std::pair<int, ValueType>>::iterator end() { return container.end(); }
const ValueType defaultValue;
ValueType defaultValue;
std::vector<CCData<ValueType>> container;
LEAK_DETECTOR(CCMap);
};

View file

@ -63,6 +63,8 @@ struct EGDescription {
EGDescription(const EGDescription&) = default;
EGDescription(EGDescription&&) = default;
~EGDescription() = default;
EGDescription& operator=(const EGDescription&) = default;
EGDescription& operator=(EGDescription&&) = default;
float attack { Default::attack };
float decay { Default::decay };