check for exceptions for Cuda

This commit is contained in:
Joachim Schoeberl 2023-02-22 08:29:06 +01:00
parent c6af357901
commit 714b064666

View File

@ -756,7 +756,9 @@ namespace ngcore
for (size_t i = 0; i < size; i++) for (size_t i = 0; i < size; i++)
data[i] = a2.data[i]; data[i] = a2.data[i];
} }
#ifdef __cpp_exceptions
// #ifdef __cpp_exceptions
#ifndef __CUDA_ARCH__
else else
throw Exception(std::string("cannot copy-construct Array of type ") + typeid(T).name()); throw Exception(std::string("cannot copy-construct Array of type ") + typeid(T).name());
#endif #endif