Cycles: Correction for C++11 compilation error after recent vector changes

This commit is contained in:
Sergey Sharybin 2015-02-16 15:38:13 +05:00
parent 9a10b208ba
commit 9daac198f5
1 changed files with 4 additions and 2 deletions

View File

@ -69,12 +69,14 @@ public:
/* Copy constructor. */
vector(const vector &x) : std::vector<value_type, allocator_type>(x) { }
#if __cplusplus < 201103L
void shrink_to_fit(void)
{
#if __cplusplus < 201103L
vector<value_type>().swap(*this);
}
#else
std::vector<value_type, allocator_type>::shrink_to_fit();
#endif
}
void free_memory(void) {
std::vector<value_type, allocator_type>::resize(0);