Fix ownership.

This commit is contained in:
Alexander Arlt 2020-04-07 08:26:40 -05:00
parent 582c754598
commit 6cf830742d

View File

@ -38,7 +38,7 @@
/// Operators need to stay in the global namespace. /// Operators need to stay in the global namespace.
/// Concatenate the contents of a container onto a vector /// Concatenate the contents of a container onto a vector
template <class T, class U> std::vector<T>& operator+=(std::vector<T>& _a, U const& _b) template <class T, class U> std::vector<T>& operator+=(std::vector<T>& _a, U& _b)
{ {
for (auto const& i: _b) for (auto const& i: _b)
_a.push_back(i); _a.push_back(i);