aboutsummaryrefslogtreecommitdiff
path: root/src/input_common/sdl/sdl_impl.cpp
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2021-08-11 15:49:01 -0700
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2021-08-11 17:12:14 -0400
commit5be2d6fd2829e1bbb056f38101a0d6106736217a (patch)
treed47a8acb717c7974a50ea4aafbd6a604a6faa2ec /src/input_common/sdl/sdl_impl.cpp
parente6b80c2cf8f7f2d5d3a8ab4d8141ef2a609f929f (diff)
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