From 13e73d6a7812650b436a5e1dbad9d0c247d04c8d Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 27 Jun 2017 16:23:18 +0300 Subject: [PATCH] Do not use UINT_MAX to avoid -Wmicrosoft-enum-value from Clang --- include/boost/smart_ptr/detail/local_counted_base.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/smart_ptr/detail/local_counted_base.hpp b/include/boost/smart_ptr/detail/local_counted_base.hpp index 2e5f6ae..398b46d 100644 --- a/include/boost/smart_ptr/detail/local_counted_base.hpp +++ b/include/boost/smart_ptr/detail/local_counted_base.hpp @@ -20,7 +20,6 @@ #include #include #include -#include namespace boost { @@ -37,7 +36,7 @@ private: private: // not 'int' or 'unsigned' to avoid aliasing and enable optimizations - enum count_type { min_ = 0, initial_ = 1, max_ = UINT_MAX }; + enum count_type { min_ = 0, initial_ = 1, max_ = 2147483647 }; count_type local_use_count_;