From: Daniel Arndt Date: Wed, 27 Feb 2019 22:54:21 +0000 (+0100) Subject: Move specialization X-Git-Tag: v9.1.0-rc1~299^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7760%2Fhead;p=dealii.git Move specialization --- 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) {