From e601fcb9c9e2838d238b53d2b84f9997e9f63e5e Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Sun, 16 May 2010 11:08:00 +0000 Subject: [PATCH] Locally disabled a trivial MSVC warning in value_init.hpp (C4512, "assignment operator could not be generated") [SVN r62030] --- include/boost/utility/value_init.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/utility/value_init.hpp b/include/boost/utility/value_init.hpp index 17e597b..8623911 100644 --- a/include/boost/utility/value_init.hpp +++ b/include/boost/utility/value_init.hpp @@ -35,6 +35,9 @@ // It is safe to ignore the following warning from MSVC 7.1 or higher: // "warning C4351: new behavior: elements of array will be default initialized" #pragma warning(disable: 4351) +// It is safe to ignore the following MSVC warning, which may pop up when T is +// a const type: "warning C4512: assignment operator could not be generated". +#pragma warning(disable: 4512) #endif #endif