Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
helios::details::PolymorphicConvertible Concept Reference

Concept to allow argument conversion with polymorphic relationships. More...

#include <delegate.hpp>

Concept definition

template<typename From, typename To>
std::convertible_to<From, To> ||
(std::is_polymorphic_v<std::remove_reference_t<From>> && std::is_polymorphic_v<std::remove_reference_t<To>> &&
(std::derived_from<From, To> || std::derived_from<To, From>))
Concept to allow argument conversion with polymorphic relationships.
Definition delegate.hpp:62

Detailed Description

Concept to allow argument conversion with polymorphic relationships.

Allows regular convertibility or base/derived relationship for polymorphic types. This is used to make delegates a bit more flexible when binding.

Definition at line 62 of file delegate.hpp.