mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
check for exceptions for Cuda
This commit is contained in:
parent
c6af357901
commit
714b064666
@ -756,7 +756,9 @@ namespace ngcore
|
||||
for (size_t i = 0; i < size; i++)
|
||||
data[i] = a2.data[i];
|
||||
}
|
||||
#ifdef __cpp_exceptions
|
||||
|
||||
// #ifdef __cpp_exceptions
|
||||
#ifndef __CUDA_ARCH__
|
||||
else
|
||||
throw Exception(std::string("cannot copy-construct Array of type ") + typeid(T).name());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user