From c6820a6316c86fb7f67fd344832f8e31cac62dc1 Mon Sep 17 00:00:00 2001 From: David Tellenbach Date: Fri, 14 Aug 2020 17:24:37 +0200 Subject: Replace the call to int64_t in the blasutil test by explicit types Some platforms define int64_t to be long long even for C++03. If this is the case we miss the definition of internal::make_unsigned for this type. If we just define the template we get duplicated definitions errors for platforms defining int64_t as signed long for C++03. We need to find a way to distinguish both cases at compile-time. --- Eigen/src/Core/util/Meta.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Eigen/src/Core') diff --git a/Eigen/src/Core/util/Meta.h b/Eigen/src/Core/util/Meta.h index c892e499c..68452ecfa 100755 --- a/Eigen/src/Core/util/Meta.h +++ b/Eigen/src/Core/util/Meta.h @@ -160,6 +160,10 @@ template<> struct make_unsigned { typedef unsigned long type; template<> struct make_unsigned { typedef unsigned __int64 type; }; template<> struct make_unsigned { typedef unsigned __int64 type; }; #endif + +// TODO: Some platforms define int64_t as long long even for C++03. In this case +// we are missing the definition for make_unsigned. If we just define it, we get +// duplicated definitions for platforms defining int64_t as signed long for C++03 #endif template struct add_const { typedef const T type; }; -- cgit v1.2.3