summaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorGravatar lat9nq2021-08-11 15:49:01 -0700
committerGravatar lat9nq2021-08-11 17:12:14 -0400
commit5be2d6fd2829e1bbb056f38101a0d6106736217a (patch)
treed47a8acb717c7974a50ea4aafbd6a604a6faa2ec /src/input_common/sdl/sdl_impl.cpp
parentMerge pull request #6776 from lat9nq/ranged-settings (diff)
downloadyuzu-5be2d6fd2829e1bbb056f38101a0d6106736217a.tar.gz
yuzu-5be2d6fd2829e1bbb056f38101a0d6106736217a.tar.xz
yuzu-5be2d6fd2829e1bbb056f38101a0d6106736217a.zip
settings: Fix MSVC issues
According to https://stackoverflow.com/questions/469508, we run into a MSVC bug (since VS 2005) when using diamond inheritance for RangedSetting. This explicitly implements those functions in RangedSetting. GetValue is implemented as just calling the inherited version. The explicit converson operator is reimplemented. I opted for this over ignoring the warning with a pragma since this specifies the inherited behavior, and I have now less faith in MSVC to pick the right one. In addition, we mark destructors as virtual to silence what I believe is a fair MSVC compilation error.
Diffstat (limited to 'src/input_common/sdl/sdl_impl.cpp')
0 files changed, 0 insertions, 0 deletions