From de0e18ca0a2bd10d54c7fc0e99adbaab98ce657f Mon Sep 17 00:00:00 2001 From: Eric Niebler Date: Wed, 23 Apr 2014 15:54:27 -0700 Subject: [PATCH] work around nvcc bug by only defining has_result when it's needed --- include/boost/utility/result_of.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/utility/result_of.hpp b/include/boost/utility/result_of.hpp index 9ea151d..206ae30 100644 --- a/include/boost/utility/result_of.hpp +++ b/include/boost/utility/result_of.hpp @@ -73,7 +73,10 @@ namespace detail { BOOST_MPL_HAS_XXX_TRAIT_DEF(result_type) +// Work around a nvcc bug by only defining has_result when it's needed. +#ifdef BOOST_RESULT_OF_USE_TR1_WITH_DECLTYPE_FALLBACK BOOST_MPL_HAS_XXX_TEMPLATE_DEF(result) +#endif template struct tr1_result_of_impl;