Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeuz committed Oct 22, 2016
1 parent e992827 commit b1d7d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiring/inc/spark_wiring_vector.h
Expand Up @@ -452,11 +452,11 @@ inline T spark::Vector<T, AllocatorT>::takeLast() {
template<typename T, typename AllocatorT>
inline T spark::Vector<T, AllocatorT>::takeAt(int i) {
T* const p = data_ + i;
const T v(std::move(*p));
T v(std::move(*p));
p->~T();
move(p, p + 1, data_ + size_);
--size_;
return v;
return std::move(v);
}

template<typename T, typename AllocatorT>
Expand Down

0 comments on commit b1d7d74

Please sign in to comment.