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

Hide dummy member function

parent 58d1924b
...@@ -58,16 +58,16 @@ struct get_carrier<3> ...@@ -58,16 +58,16 @@ struct get_carrier<3>
return to; return to;
} }
public: // method to trigger template substitution failure
__device__ carrier(value_type value) noexcept carrier(const carrier& other) noexcept
{ {
copy_n(reinterpret_cast<const std::byte*>(&value), bytes.size(), bytes.begin()); copy_n(other.bytes.begin(), bytes.size(), bytes.begin());
} }
// method to trigger template substitution failure public:
__device__ carrier& operator=(const carrier& other) noexcept __device__ carrier& operator=(value_type value) noexcept
{ {
copy_n(other.bytes.begin(), bytes.size(), bytes.begin()); copy_n(reinterpret_cast<const std::byte*>(&value), bytes.size(), bytes.begin());
return *this; return *this;
} }
......
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