diff --git a/sprout/functional/type_traits/weak_result_type.hpp b/sprout/functional/type_traits/weak_result_type.hpp index f9cbcdf7..2cb7d94e 100644 --- a/sprout/functional/type_traits/weak_result_type.hpp +++ b/sprout/functional/type_traits/weak_result_type.hpp @@ -12,6 +12,7 @@ #include #include #include +#include namespace sprout { namespace detail { @@ -31,6 +32,10 @@ namespace sprout { struct weak_result_type_impl : public sprout::detail::weak_result_type_impl {}; +#if SPROUT_CLANG_OR_LATER(3, 6, 0) +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wambiguous-ellipsis" +#endif template struct weak_result_type_impl { public: @@ -71,6 +76,9 @@ namespace sprout { public: typedef R result_type; }; +#if SPROUT_CLANG_OR_LATER(3, 6, 0) +# pragma clang diagnostic pop +#endif } // namespace detail //