Skip to content

Commit

Permalink
Compile correctly on very old versions of clang and gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyang98 committed Feb 24, 2024
1 parent 496f3eb commit 51125f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/joint_allocate.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static AlignedVector<uint8_t> AllocateJoint(size_t curr_joint_size, size_t joint
const size_t new_joint_size = padded_joint_size + buf_size;
auto data = AllocateJoint(new_joint_size, joint_alignment, args...);

const auto data_offset = tcb::span(data).subspan(padded_joint_size, buf_size);
const auto data_offset = tcb::span<uint8_t>(data).subspan(padded_joint_size, buf_size);

// Check that alignment was met
const auto addr_val = reinterpret_cast<uintptr_t>(data_offset.data());
Expand Down

0 comments on commit 51125f7

Please sign in to comment.