Skip to content

Commit

Permalink
Merge pull request #3486 from neobrain/fix_libfwd_accidental_copy
Browse files Browse the repository at this point in the history
Library Forwarding: Fix accidental data copying when converting from host to guest layout
  • Loading branch information
neobrain authored Mar 8, 2024
2 parents 6d94d79 + 2359a98 commit 26a6679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThunkLibs/include/common/Host.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ T* unwrap_host(repack_wrapper<T*, T2>& val) {

template<typename T>
struct host_to_guest_convertible {
const host_layout<T> from;
const host_layout<T>& from;

// Conversion from host to guest layout for non-pointers
operator guest_layout<T>() const requires(!std::is_pointer_v<T>) {
Expand Down

0 comments on commit 26a6679

Please sign in to comment.