aboutsummaryrefslogtreecommitdiff
path: root/lib/events/event.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-28 18:57:07 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-12-28 18:57:07 +0100
commit2174e1980fd2cf5407ba8cd7cabb85d74d242ed2 (patch)
tree0fac60feb2fefcb553a0e64e806dedcaa4c7e0f3 /lib/events/event.h
parenta49c3f2eb4e1aa5c6687c7637c1a06fcd69b0a23 (diff)
downloadlibquotient-2174e1980fd2cf5407ba8cd7cabb85d74d242ed2.tar.gz
libquotient-2174e1980fd2cf5407ba8cd7cabb85d74d242ed2.zip
event.h: Fix breakage of AppVeyor CI
The breakage was caused by 639f1d48.
Diffstat (limited to 'lib/events/event.h')
-rw-r--r--lib/events/event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/events/event.h b/lib/events/event.h
index 309ebddf..9f2f4f91 100644
--- a/lib/events/event.h
+++ b/lib/events/event.h
@@ -327,8 +327,9 @@ inline auto visit(const BaseEventT& event, FnT&& visitor)
}
namespace _impl {
+ // Using bool instead of auto below because auto apparently upsets MSVC
template <class BaseT, typename FnT>
- inline constexpr auto needs_downcast =
+ inline constexpr bool needs_downcast =
std::is_base_of_v<BaseT, std::decay_t<fn_arg_t<FnT>>>
&& !std::is_same_v<BaseT, std::decay_t<fn_arg_t<FnT>>>;
}