Skip to content
Snippets Groups Projects
Commit 58787bb1 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: avoid ambiguous max() call on MacOS (fixes #3066)

- had max(std::streamsize, label) but this does not resolve properly
  on OSX, so write out in long form instead.

  The similar logic in DynamicList is okay since there it compares
  max(label, label) instead
parent 1d8f0d55
No related branches found
No related tags found
No related merge requests found
...@@ -519,7 +519,8 @@ public: ...@@ -519,7 +519,8 @@ public:
if (newCapacity < len) if (newCapacity < len)
{ {
// Increase capacity (doubling) // Increase capacity (doubling)
newCapacity = max(len, label(2*storage_.size())); newCapacity =
Foam::max(label(len), label(2*storage_.size()));
} }
// Info<<"request:" << len // Info<<"request:" << len
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment