From 6f384148dff2b9b2f4dbae1408793821f6d00ea1 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 27 Feb 2019 23:54:21 +0100 Subject: [PATCH] Move specialization --- include/deal.II/base/numbers.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/deal.II/base/numbers.h b/include/deal.II/base/numbers.h index fca6430fd2..60396a2af5 100644 --- a/include/deal.II/base/numbers.h +++ b/include/deal.II/base/numbers.h @@ -174,6 +174,13 @@ namespace numbers struct is_cuda_compatible : std::true_type {}; + /** + * std::complex cannot be used in CUDA device code. + */ + template + struct is_cuda_compatible, void> : std::false_type + {}; + /** * Check whether a value is not a number. * @@ -443,12 +450,6 @@ namespace numbers // --------------- inline and template functions ---------------- // - template - struct is_cuda_compatible, void> : std::false_type - {}; - - - inline bool is_nan(const double x) { -- 2.39.5