---
scribo/ChangeLog | 4 ++++
scribo/scribo/core/component_set.hh | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index 9f4ac2a..6a7d44a 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,5 +1,9 @@
2013-04-17 Guillaume Lazzara <z(a)lrde.epita.fr>
+ * scribo/core/component_set.hh: Adjust memory pre-allocation size.
+
+2013-04-17 Guillaume Lazzara <z(a)lrde.epita.fr>
+
Enhance documentation in scribo.
* scribo/core/component_set.hh,
diff --git a/scribo/scribo/core/component_set.hh b/scribo/scribo/core/component_set.hh
index 30769d4..135580f 100644
--- a/scribo/scribo/core/component_set.hh
+++ b/scribo/scribo/core/component_set.hh
@@ -405,7 +405,7 @@ namespace scribo
mln_precondition(infos_.nelements() == 0);
ncomps_ = ncomps;
- infos_.reserve(ncomps_);
+ infos_.reserve(mln::value::next(ncomps_));
infos_.append(component_info<L>()); // Component 0, i.e. the background.
}
--
1.7.2.5
Show replies by date