Un-break build for older compilers.

This commit is contained in:
Shyotl
2014-12-04 17:53:41 -06:00
parent fd13ccf802
commit 18e33d2268

View File

@@ -296,7 +296,7 @@ inline void vector_shrink_to_fit(std::vector<T>& invec)
#if defined(LL_WINDOWS) || __cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X) && __GNUC_MINOR__ >= 5)
invec.shrink_to_fit();
#else
invec(invec.begin(), invec.end()).swap(invec);
std::vector<T>(invec).swap(invec);
#endif
}