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

Remove unnecessary 'inline' specifier

parent d6e1a821
...@@ -41,7 +41,7 @@ struct get_carrier<3> ...@@ -41,7 +41,7 @@ struct get_carrier<3>
static_assert(sizeof(bytes) <= sizeof(value_type)); static_assert(sizeof(bytes) <= sizeof(value_type));
public: public:
__device__ inline carrier(value_type value) noexcept __device__ carrier(value_type value) noexcept
{ {
auto from = reinterpret_cast<const std::byte*>(&value); auto from = reinterpret_cast<const std::byte*>(&value);
for(auto to = bytes.begin(); to != bytes.end(); ++to, ++from) for(auto to = bytes.begin(); to != bytes.end(); ++to, ++from)
...@@ -51,7 +51,7 @@ struct get_carrier<3> ...@@ -51,7 +51,7 @@ struct get_carrier<3>
} }
// method to trigger template substitution failure // method to trigger template substitution failure
__device__ inline carrier& operator=(const carrier& other) noexcept __device__ carrier& operator=(const carrier& other) noexcept
{ {
auto from = other.bytes.begin(); auto from = other.bytes.begin();
for(auto to = bytes.begin(); to != bytes.end(); ++to, ++from) for(auto to = bytes.begin(); to != bytes.end(); ++to, ++from)
...@@ -62,7 +62,7 @@ struct get_carrier<3> ...@@ -62,7 +62,7 @@ struct get_carrier<3>
return *this; return *this;
} }
__device__ inline operator value_type() const noexcept __device__ operator value_type() const noexcept
{ {
std::byte result[sizeof(value_type)]; std::byte result[sizeof(value_type)];
......
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