From 9284a649366936ea82524c27377f242c828f1f69 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Sun, 17 Feb 2013 23:56:10 +0000 Subject: [PATCH] disable annoying msvc warning, refs #7663 [SVN r82960] --- include/boost/utility/result_of.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/utility/result_of.hpp b/include/boost/utility/result_of.hpp index 4a20254..97e9618 100644 --- a/include/boost/utility/result_of.hpp +++ b/include/boost/utility/result_of.hpp @@ -68,6 +68,13 @@ template struct tr1_result_of_im #ifdef BOOST_NO_SFINAE_EXPR +// There doesn't seem to be any other way to turn this off such that the presence of +// the user-defined operator,() below doesn't cause spurious warning all over the place, +// so unconditionally turn it off. +#if BOOST_MSVC +# pragma warning(disable: 4913) // user defined binary operator ',' exists but no overload could convert all operands, default built-in binary operator ',' used +#endif + struct result_of_private_type {}; struct result_of_weird_type {