Fix MSVC build error

This commit is contained in:
Richard Hodges
2021-03-15 23:12:00 +01:00
parent f814ce1fd7
commit 1a5aea3d86
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
* Fix MSVC build error.
--------------------------------------------------------------------------------
Version 310:
* Update Release Notes.

View File

@@ -916,7 +916,7 @@ prepare(size_type n) ->
std::size_t altn = in_size_ * growth_factor;
// Overflow detection:
if(in_size_ > altn)
altn = std::numeric_limits<std::size_t>::max();
altn = (std::numeric_limits<std::size_t>::max)();
else
altn = (std::max<std::size_t>)(512, altn);
auto const size =