Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeuz committed Oct 29, 2016
1 parent e4e1a6e commit 7d404a8
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 7d404a8

Please sign in to comment.