mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fix event handling stack corruption on MSVC
This commit is contained in:
parent
27943ea774
commit
44339c3d67
@ -39,6 +39,9 @@ template <typename... Ts>
|
|||||||
struct OverloadSet : Ts...
|
struct OverloadSet : Ts...
|
||||||
{
|
{
|
||||||
using Ts::operator()...;
|
using Ts::operator()...;
|
||||||
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
|
unsigned char dummy; // Dummy variable to ensure that this struct is not empty thus avoiding a crash due to an MSVC bug
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
template <typename... Ts>
|
template <typename... Ts>
|
||||||
OverloadSet(Ts...) -> OverloadSet<Ts...>;
|
OverloadSet(Ts...) -> OverloadSet<Ts...>;
|
||||||
|
Loading…
Reference in New Issue
Block a user