Skip to content

Commit

Permalink
Disambiguate bit_cast (#1749)
Browse files Browse the repository at this point in the history
Adding namespace to disambiguate with std::bit_cast

Co-authored-by: Po Yen Chen <[email protected]>
  • Loading branch information
xw285cornell and poyenc authored Dec 18, 2024
1 parent f6c4d61 commit 1c1b336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/ck_tile/core/container/meta_data_buffer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct meta_data_buffer
{
constexpr index_t size = sizeof(T);

auto tmp = bit_cast<array<std::byte, size>>(data);
auto tmp = ck_tile::bit_cast<array<std::byte, size>>(data);

for(int i = 0; i < size; i++)
{
Expand Down Expand Up @@ -66,7 +66,7 @@ struct meta_data_buffer
pos++;
}

data = bit_cast<T>(tmp);
data = ck_tile::bit_cast<T>(tmp);
}

return data;
Expand All @@ -86,7 +86,7 @@ struct meta_data_buffer
pos++;
}

auto data = bit_cast<T>(tmp);
auto data = ck_tile::bit_cast<T>(tmp);

return data;
}
Expand Down

0 comments on commit 1c1b336

Please sign in to comment.