@@ -115,7 +115,7 @@ namespace Gpu {
115115 void copy (HostToDevice, InIter begin, InIter end, OutIter result) noexcept
116116 {
117117 using value_type = typename std::iterator_traits<InIter>::value_type;
118- static_assert (AMREX_IS_TRIVIALLY_COPYABLE ( value_type),
118+ static_assert (std::is_trivially_copyable< value_type>( ),
119119 " Can only copy trivially copyable types" );
120120 auto size = std::distance (begin, end);
121121 if (size == 0 ) return ;
@@ -148,7 +148,7 @@ namespace Gpu {
148148 void copy (DeviceToHost, InIter begin, InIter end, OutIter result) noexcept
149149 {
150150 using value_type = typename std::iterator_traits<InIter>::value_type;
151- static_assert (AMREX_IS_TRIVIALLY_COPYABLE ( value_type),
151+ static_assert (std::is_trivially_copyable< value_type>( ),
152152 " Can only copy trivially copyable types" );
153153 auto size = std::distance (begin, end);
154154 if (size == 0 ) return ;
@@ -181,7 +181,7 @@ namespace Gpu {
181181 void copy (DeviceToDevice, InIter begin, InIter end, OutIter result) noexcept
182182 {
183183 using value_type = typename std::iterator_traits<InIter>::value_type;
184- static_assert (AMREX_IS_TRIVIALLY_COPYABLE ( value_type),
184+ static_assert (std::is_trivially_copyable< value_type>( ),
185185 " Can only copy trivially copyable types" );
186186 auto size = std::distance (begin, end);
187187 if (size == 0 ) return ;
@@ -215,7 +215,7 @@ namespace Gpu {
215215 void copyAsync (HostToDevice, InIter begin, InIter end, OutIter result) noexcept
216216 {
217217 using value_type = typename std::iterator_traits<InIter>::value_type;
218- static_assert (AMREX_IS_TRIVIALLY_COPYABLE ( value_type),
218+ static_assert (std::is_trivially_copyable< value_type>( ),
219219 " Can only copy trivially copyable types" );
220220 auto size = std::distance (begin, end);
221221 if (size == 0 ) return ;
@@ -249,7 +249,7 @@ namespace Gpu {
249249 void copyAsync (DeviceToHost, InIter begin, InIter end, OutIter result) noexcept
250250 {
251251 using value_type = typename std::iterator_traits<InIter>::value_type;
252- static_assert (AMREX_IS_TRIVIALLY_COPYABLE ( value_type),
252+ static_assert (std::is_trivially_copyable< value_type>( ),
253253 " Can only copy trivially copyable types" );
254254 auto size = std::distance (begin, end);
255255 if (size == 0 ) return ;
@@ -283,7 +283,7 @@ namespace Gpu {
283283 void copyAsync (DeviceToDevice, InIter begin, InIter end, OutIter result) noexcept
284284 {
285285 using value_type = typename std::iterator_traits<InIter>::value_type;
286- static_assert (AMREX_IS_TRIVIALLY_COPYABLE ( value_type),
286+ static_assert (std::is_trivially_copyable< value_type>( ),
287287 " Can only copy trivially copyable types" );
288288 auto size = std::distance (begin, end);
289289 if (size == 0 ) return ;
0 commit comments