Commit b681fc26 authored by Po-Yen, Chen's avatar Po-Yen, Chen
Browse files

Add 'noexcept' specifier to CRTP generated method

parent 734a12da
...@@ -82,7 +82,8 @@ struct DevicePermuteCRTP : DevicePermute<NumDim, InDataType, OutDataType, Elemen ...@@ -82,7 +82,8 @@ struct DevicePermuteCRTP : DevicePermute<NumDim, InDataType, OutDataType, Elemen
// generate other utility methods // generate other utility methods
template <typename... Args> template <typename... Args>
static auto MakeArgument(Args&&... args) static auto MakeArgument(Args&&... args) noexcept(
std::is_nothrow_constructible_v<typename DerivedDeviceOperator::Argument, Args...>)
{ {
static_assert(std::is_constructible_v<typename DerivedDeviceOperator::Argument, Args...>); static_assert(std::is_constructible_v<typename DerivedDeviceOperator::Argument, Args...>);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment