diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 15:03:21 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 15:03:21 -0700 |
| commit | f6840ab2683084f26b0cf1914c55579712b1891a (patch) | |
| tree | b5cedc14b984b1dc2a7f35b1d41ca27ba35cceae | |
| parent | 35ccbc869bd6a405ef92db46b4c0eb303ed46a66 (diff) | |
| download | vcpkg-f6840ab2683084f26b0cf1914c55579712b1891a.tar.gz vcpkg-f6840ab2683084f26b0cf1914c55579712b1891a.zip | |
Fix SortedVector constructor
| -rw-r--r-- | toolsrc/include/SortedVector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolsrc/include/SortedVector.h b/toolsrc/include/SortedVector.h index d11c3544a..aa4a40844 100644 --- a/toolsrc/include/SortedVector.h +++ b/toolsrc/include/SortedVector.h @@ -13,7 +13,7 @@ namespace vcpkg using size_type = typename std::vector<T>::size_type; using iterator = typename std::vector<T>::const_iterator; - explicit SortedVector<T>(std::vector<T> v) : m_data(std::move(v)) + explicit SortedVector(std::vector<T> v) : m_data(std::move(v)) { if (!std::is_sorted(m_data.begin(), m_data.end())) { @@ -21,7 +21,7 @@ namespace vcpkg } } template <class Compare> - SortedVector<T>(std::vector<T> v, Compare comp) : m_data(std::move(v)) + SortedVector(std::vector<T> v, Compare comp) : m_data(std::move(v)) { if (!std::is_sorted(m_data.cbegin(), m_data.cend(), comp)) { |
