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 {