From 6639b7d6e86ef36f6f78cf51e36efa5a004154eb Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 7 Jan 2016 18:45:19 -0800 Subject: [PATCH] Removed a couple of partial specialization that confuse nvcc and result in errors such as this: error: more than one partial specialization matches the template argument list of class "Eigen::internal::get<3, Eigen::internal::numeric_list>" "Eigen::internal::get>" "Eigen::internal::get>" --- unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h b/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h index 3f149c6a3..4d99f786c 100644 --- a/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h +++ b/unsupported/Eigen/CXX11/src/Core/util/CXX11Meta.h @@ -109,11 +109,9 @@ template struct get; template struct get> : get> {}; template struct get<0, type_list> { typedef a type; }; -template struct get> { static_assert((n - n) < 0, "meta-template get: The element to extract from a list must be smaller than the size of the list."); }; template struct get> : get> {}; template struct get<0, numeric_list> { constexpr static T value = a; }; -template struct get> { static_assert((n - n) < 0, "meta-template get: The element to extract from a list must be smaller than the size of the list."); }; /* always get type, regardless of dummy; good for parameter pack expansion */