Define wxShrinkToFit() helper for wxVector<>
Unlike member shrink_to_fit(), this function is always defined, even when wxVector is pre-C++11 std::vector<>.
This commit is contained in:
@@ -111,12 +111,7 @@ public:
|
||||
|
||||
void Shrink()
|
||||
{
|
||||
#if !wxUSE_STD_CONTAINERS || __cplusplus >= 201103L || wxCHECK_VISUALC_VERSION(10)
|
||||
this->shrink_to_fit();
|
||||
#else
|
||||
base_vec tmp(*this);
|
||||
this->swap(tmp);
|
||||
#endif
|
||||
wxShrinkToFit(*this);
|
||||
}
|
||||
|
||||
size_t GetCount() const { return this->size(); }
|
||||
|
Reference in New Issue
Block a user