dolphin/Source/Core/Core
Phil Christensen 2ed61b0ee1 C++ conformance fixes (MSVC /permissive-)
We (the Microsoft C++ team) use the dolphin project as part of our "Real world code" tests.
I noticed a few issues in windows specific code when building dolphin with the MSVC compiler
in its conformance mode (/permissive-).  For more information on /permissive- see our blog
https://blogs.msdn.microsoft.com/vcblog/2016/11/16/permissive-switch/.

These changes are to address 3 different types of issues:

1) Use of qualified names in member declarations

    struct A {
        void A::f() { } // error C4596: illegal qualified name in member declaration
                        // remove redundant 'A::' to fix
    };

2) Binding a non-const reference to a temporary

    struct S{};
  
    // If arg is in 'in' parameter, then it should be made const.
    void func(S& arg){}
  
    int main() {
      //error C2664: 'void func(S &)': cannot convert argument 1 from 'S' to 'S &'
      //note: A non-const reference may only be bound to an lvalue
      func( S() );
   
      //Work around this by creating a local, and using it to call the function
      S s;
      func( s );
    }

3) Add missing #include <intrin.h>

Because of the workaround you are using in the code you will need to include
this.  This is because of changes in the libraries and not /permissive-
2017-02-15 20:37:04 -08:00
..
Boot Boot: Remove unused game ID string 2017-02-12 07:55:49 -05:00
Debugger Core: Convert State enum into an enum class 2017-02-05 08:32:23 -05:00
DSP DSPCore: Make g_cycles_left a regular member variable of DSPEmitter 2017-02-07 21:56:57 -05:00
FifoPlayer OpcodeDecoding: Convert #defines into enum constants 2017-02-08 00:05:17 -05:00
HLE Merge pull request #4817 from sepalani/debug_print_case 2017-02-06 17:40:44 +13:00
HW C++ conformance fixes (MSVC /permissive-) 2017-02-15 20:37:04 -08:00
IOS Merge pull request #4907 from leoetlino/ios-constants 2017-02-15 21:09:42 +01:00
PowerPC Merge pull request #4862 from lioncash/compile 2017-02-15 11:44:37 -05:00
ActionReplay.cpp
ActionReplay.h
Analytics.cpp ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
Analytics.h ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
ARDecrypt.cpp
ARDecrypt.h
BootManager.cpp Copy Wii save for current game for Netplay and TAS 2017-02-05 13:17:05 -05:00
BootManager.h
CMakeLists.txt IOS: Separate net/kd code out from Net.cpp 2017-02-11 23:09:08 -05:00
ConfigManager.cpp Merge pull request #4408 from leoetlino/usb 2017-02-07 09:17:05 +13:00
ConfigManager.h IOS: Implement MIOS functionality 2017-02-08 15:07:34 +01:00
Core.cpp Fix connecting Wii remotes on boot 2017-02-11 08:58:47 +01:00
Core.h Core: Actually make the State enum an enum class 2017-02-06 01:13:07 -05:00
Core.vcxproj Merge pull request #4862 from lioncash/compile 2017-02-15 11:44:37 -05:00
Core.vcxproj.filters Merge pull request #4862 from lioncash/compile 2017-02-15 11:44:37 -05:00
CoreTiming.cpp Adjust event times after a PPC clock change 2017-02-08 16:22:27 +01:00
CoreTiming.h Adjust event times after a PPC clock change 2017-02-08 16:22:27 +01:00
DSPEmulator.cpp
DSPEmulator.h
ec_wii.cpp
ec_wii.h
GeckoCode.cpp
GeckoCode.h
GeckoCodeConfig.cpp
GeckoCodeConfig.h
Host.h
HotkeyManager.cpp ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
HotkeyManager.h ControllerEmu: Separate ControlGroup from ControllerEmu 2017-02-09 18:18:52 -05:00
MachineContext.h
MemoryWatcher.cpp
MemoryWatcher.h
MemTools.cpp
MemTools.h
Movie.cpp Movie: replace magic number 8 with sizeof(ControllerState) 2017-02-09 15:07:47 -08:00
Movie.h Copy Wii save for current game for Netplay and TAS 2017-02-05 13:17:05 -05:00
NetPlayClient.cpp Copy Wii save for current game for Netplay and TAS 2017-02-05 13:17:05 -05:00
NetPlayClient.h
NetPlayProto.h Copy Wii save for current game for Netplay and TAS 2017-02-05 13:17:05 -05:00
NetPlayServer.cpp Copy Wii save for current game for Netplay and TAS 2017-02-05 13:17:05 -05:00
NetPlayServer.h
PatchEngine.cpp
PatchEngine.h
State.cpp IOS: Implement MIOS functionality 2017-02-08 15:07:34 +01:00
State.h
WiiRoot.cpp Copy Wii save for current game for Netplay and TAS 2017-02-05 13:17:05 -05:00
WiiRoot.h