summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/smallvec_type.hpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/core/smallvec_type.hpp b/src/core/smallvec_type.hpp
index 9df015ad8..81b9cf7ee 100644
--- a/src/core/smallvec_type.hpp
+++ b/src/core/smallvec_type.hpp
@@ -60,24 +60,13 @@ public:
template <uint X>
SmallVector &operator=(const SmallVector<T, X> &other)
{
- this->Assign(other);
+ std::vector<T>::operator=(other);
return *this;
}
~SmallVector() = default;
/**
- * Assign items from other vector.
- */
- template <uint X>
- inline void Assign(const SmallVector<T, X> &other)
- {
- if ((const void *)&other == (void *)this) return;
-
- std::vector<T>::operator=(other);
- }
-
- /**
* Append an item and return it.
* @param to_add the number of items to append
* @return pointer to newly allocated item