diff --git a/source/coral.cpp b/source/coral.cpp index 8843e77..b12d493 100644 --- a/source/coral.cpp +++ b/source/coral.cpp @@ -286,14 +286,16 @@ export void operator delete[](void * pointer, coral::allocator & allocator) { // Wrapper types. export namespace coral { - template concept function_pointer = requires (type value, arguments... value_arguments) { - {*value}; - {value(value_arguments...)}; - }; + template concept function_pointer = + requires (type value, arguments... value_arguments) { + {*value}; + {value(value_arguments...)}; + }; - template concept functor = requires (type value, arguments... value_arguments) { - {value.operator()(value_arguments...)}; - }; + template concept functor = + requires (type value, arguments... value_arguments) { + {value.operator()(value_arguments...)}; + }; template struct closure; @@ -305,7 +307,7 @@ export namespace coral { * the caller to manage the lifetime of any functor assigned to it. */ template struct closure { - template closure(callable const & call) requires function_pointer { + template closure(callable call) requires function_pointer { this->dispatch = [](void * context, arguments... dispatch_arguments) -> returns { return (*reinterpret_cast(context))(dispatch_arguments...); };