mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
Fixes compat_ptr to return reference instead of copy
The expectation was that a reference would be returned rather than a copy. Oops
This commit is contained in:
1 parent
97c4ba018b
commit
2e8aacffe6
1 file changed
+3
-1
@@ -48,7 +48,9 @@ public:
|
||||
compat_ptr(uint32_t In) : Ptr {In} {}
|
||||
compat_ptr(T *In) : Ptr {static_cast<uint32_t>(reinterpret_cast<uintptr_t>(In))} {}
|
||||
|
||||
T operator*() const {
|
||||
template<typename T2 = T,
|
||||
typename = std::enable_if<!std::is_same<T2, void>::value, T2>>
|
||||
T2& operator*() const {
|
||||
return *Interpret();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user