Skip to content

Commit

Permalink
fix: Wrong ViewType concept definition
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv authored Sep 11, 2024
1 parent 0cbf169 commit 46cbb63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/libfenestra/include/fenestra/api/interface_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ namespace fene {

template<typename T>
concept ViewType = requires {
requires std::derived_from<View, T>;
requires std::derived_from<T, View>;
{ T::Icon } -> std::convertible_to<const char *>;
{ T::UnlocalizedName } -> std::convertible_to<const char *>;
{ T::AllowMultipleInstances } -> std::convertible_to<bool>;
Expand Down Expand Up @@ -313,4 +313,4 @@ namespace fene {

}

}
}

0 comments on commit 46cbb63

Please sign in to comment.