From 4f6a4073931992a4c8cf3b032fe86afce71f470a Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Mon, 1 Sep 2014 22:29:51 +0400 Subject: [PATCH] Compilation fix 3 --- rpcs3/Emu/Memory/vm_ref.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/rpcs3/Emu/Memory/vm_ref.h b/rpcs3/Emu/Memory/vm_ref.h index 2e47d29c16..539c7c0115 100644 --- a/rpcs3/Emu/Memory/vm_ref.h +++ b/rpcs3/Emu/Memory/vm_ref.h @@ -35,29 +35,29 @@ namespace vm //BE reference to LE data template struct brefl : public _ref_base::type> { - _ref_base& operator = (typename T right) { get_ref(m_addr) = right; return *this; } - const _ref_base& operator = (typename T right) const { get_ref(m_addr) = right; return *this; } + brefl& operator = (T right) { get_ref(m_addr) = right; return *this; } + const brefl& operator = (T right) const { get_ref(m_addr) = right; return *this; } }; //BE reference to BE data template struct brefb : public _ref_base::type, typename to_be_t::type> { - _ref_base& operator = (typename T right) { get_ref(m_addr) = right; return *this; } - const _ref_base& operator = (typename T right) const { get_ref(m_addr) = right; return *this; } + brefb& operator = (T right) { get_ref(m_addr) = right; return *this; } + const brefb& operator = (T right) const { get_ref(m_addr) = right; return *this; } }; //LE reference to BE data template struct lrefb : public _ref_base::type, AT> { - _ref_base& operator = (typename T right) { get_ref(m_addr) = right; return *this; } - const _ref_base& operator = (typename T right) const { get_ref(m_addr) = right; return *this; } + lrefb& operator = (T right) { get_ref(m_addr) = right; return *this; } + const lrefb& operator = (T right) const { get_ref(m_addr) = right; return *this; } }; //LE reference to LE data template struct lrefl : public _ref_base { - _ref_base& operator = (typename T right) { get_ref(m_addr) = right; return *this; } - const _ref_base& operator = (typename T right) const { get_ref(m_addr) = right; return *this; } + lrefl& operator = (T right) { get_ref(m_addr) = right; return *this; } + const lrefl& operator = (T right) const { get_ref(m_addr) = right; return *this; } }; namespace ps3 @@ -65,15 +65,15 @@ namespace vm //default reference for HLE functions (LE reference to BE data) template struct ref : public lrefb { - _ref_base& operator = (typename T right) { get_ref(m_addr) = right; return *this; } - const _ref_base& operator = (typename T right) const { get_ref(m_addr) = right; return *this; } + ref& operator = (T right) { get_ref(m_addr) = right; return *this; } + const ref& operator = (T right) const { get_ref(m_addr) = right; return *this; } }; //default reference for HLE structures (BE reference to BE data) template struct bref : public brefb { - _ref_base& operator = (typename T right) { get_ref(m_addr) = right; return *this; } - const _ref_base& operator = (typename T right) const { get_ref(m_addr) = right; return *this; } + bref& operator = (T right) { get_ref(m_addr) = right; return *this; } + const bref& operator = (T right) const { get_ref(m_addr) = right; return *this; } }; } @@ -82,8 +82,8 @@ namespace vm //default reference for HLE functions & structures (LE reference to LE data) template struct ref : public lrefl { - _ref_base& operator = (typename T right) { get_ref(m_addr) = right; return *this; } - const _ref_base& operator = (typename T right) const { get_ref(m_addr) = right; return *this; } + ref& operator = (T right) { get_ref(m_addr) = right; return *this; } + const ref& operator = (T right) const { get_ref(m_addr) = right; return *this; } }; }