From 268a6948c0400905dfc335427395519689f067f5 Mon Sep 17 00:00:00 2001 From: hop311 Date: Mon, 22 Jan 2024 20:02:58 +0000 Subject: Added reserve_more, expect_dictionary_key[s|_map]_reserve_length[_and_default] --- src/openvic-simulation/map/Province.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/openvic-simulation/map/Province.cpp') diff --git a/src/openvic-simulation/map/Province.cpp b/src/openvic-simulation/map/Province.cpp index acabbf8..94c8dcb 100644 --- a/src/openvic-simulation/map/Province.cpp +++ b/src/openvic-simulation/map/Province.cpp @@ -77,7 +77,7 @@ bool Province::add_pop(Pop&& pop) { bool Province::add_pop_vec(std::vector const& pop_vec) { if (!is_water()) { - pops.reserve(pops.size() + pop_vec.size()); + reserve_more(pops, pop_vec.size()); for (Pop const& pop : pop_vec) { pops.push_back(pop); } -- cgit v1.2.3-56-ga3b1