From f9540f360c6dbe794c8816b523958e3474ac2ce9 Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Sat, 9 Mar 2013 22:55:05 +0000 Subject: [PATCH] merge [82960] to release, fixes #7663 [SVN r83381] --- 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 {