Commit 89a07fb1 authored by Dominik Charousset's avatar Dominik Charousset

Fix dangling else trees

parent db73ab96
......@@ -71,8 +71,9 @@ private:
template <class R, class T>
std::enable_if_t<meta::is_annotation_v<T>, bool> try_apply(R& result, T& x) {
if constexpr (meta::is_save_callback_v<T>)
if constexpr (meta::is_save_callback_v<T>) {
CAF_READ_INSPECTOR_TRY(x.fun())
}
return true;
}
......
......@@ -80,8 +80,9 @@ private:
template <class R, class T>
std::enable_if_t<meta::is_annotation_v<T>, bool> try_apply(R& result, T& x) {
if constexpr (meta::is_load_callback_v<T>)
if constexpr (meta::is_load_callback_v<T>) {
CAF_WRITE_INSPECTOR_TRY(x.fun())
}
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment