Re: [Boost-bugs] [Boost C++ Libraries] #11897: Compile failure in type_traits_detail::mp_valid_impl with CUDA 7.0

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11897: Compile failure in type_traits_detail::mp_valid_impl with CUDA 7.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-01-10 12:14:50


#11897: Compile failure in type_traits_detail::mp_valid_impl with CUDA 7.0
-------------------------------+-------------------------
  Reporter: a.grund@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: type_traits
   Version: Boost 1.60.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------+-------------------------

Comment (by johnmaddock):

 Many thanks for investigating this so thoroughly. My only worry about
 setting BOOST_NO_CXX11_VARIADIC_TEMPLATES as a workaround, is that it may
 disable otherwise working code in other library interfaces. Does the
 patch below fix things?

 {{{
 index 5c4303b..4a26d92 100644
 --- a/include/boost/type_traits/common_type.hpp
 +++ b/include/boost/type_traits/common_type.hpp
 @@ -12,12 +12,13 @@
  #include <boost/config.hpp>
  #include <boost/type_traits/decay.hpp>
  #include <boost/type_traits/declval.hpp>
 +#include <boost/detail/workaround.hpp>

  #if defined(BOOST_NO_CXX11_DECLTYPE)
  #include <boost/type_traits/detail/common_type_impl.hpp>
  #endif

 -#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) &&
 !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
 +#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) &&
 !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) &&
 !BOOST_WORKAROUND(__CUDACC_VER__, < 70500)
  #include <boost/type_traits/detail/mp_defer.hpp>
  #endif

 @@ -26,7 +27,7 @@ namespace boost

  // variadic common_type

 -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
 +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) &&
 !BOOST_WORKAROUND(__CUDACC_VER__, < 70500)

  template<class... T> struct common_type
  {
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11897#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC