Library Forwarding: Fix accidental data copying when converting from host to guest layout

This commit is contained in:
Tony Wasserka committed 2024-03-07 10:52:13 +01:00
1 parent b892da72f3
commit 2359a9899c
1 file changed
+1 -1
+1 -1
View File
@@ -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>) {