Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--intern/cycles/util/util_vector.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/util/util_vector.h b/intern/cycles/util/util_vector.h
index cf8fd22fe0e..92c3f116c69 100644
--- a/intern/cycles/util/util_vector.h
+++ b/intern/cycles/util/util_vector.h
@@ -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);