Parenthesis around call to std::numeric_limits::max to prevent problems when Windows.h is included.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@987 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
c93b2e11d1
commit
a3c0926e23
1 changed files with 3 additions and 3 deletions
|
@ -142,7 +142,7 @@ private:
|
|||
public:
|
||||
CowStringOpt(const CowStringOpt& s)
|
||||
{
|
||||
if (s.GetRefs() == std::numeric_limits<RefCountType>::max())
|
||||
if (s.GetRefs() == (std::numeric_limits<RefCountType>::max)())
|
||||
{
|
||||
// must make a brand new copy
|
||||
new(buf_) Storage(s.Data()); // non shallow
|
||||
|
|
Loading…
Reference in a new issue