diff options
Diffstat (limited to 'include/cru/ui/events/RoutedEvent.hpp')
-rw-r--r-- | include/cru/ui/events/RoutedEvent.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cru/ui/events/RoutedEvent.hpp b/include/cru/ui/events/RoutedEvent.hpp index 0cedc671..dd0bc21f 100644 --- a/include/cru/ui/events/RoutedEvent.hpp +++ b/include/cru/ui/events/RoutedEvent.hpp @@ -7,7 +7,7 @@ namespace cru::ui::events { // TEventArgs must not be a reference type. This class help add reference. // EventArgs must be reference because the IsHandled property must be settable. template <typename TEventArgs> -class RoutedEvent { +class CRU_UI_API RoutedEvent { public: static_assert(std::is_base_of_v<UiEventArgs, TEventArgs>, "TEventArgs must be subclass of UiEventArgs."); |