Closed sylveon closed 4 years ago
Currently, while noexcept member functions are supported, noexcept function pointers aren't.
noexcept
struct Foo { void bar() noexcept {} }; Foo foo; auto thunk = member_thunk::make<void(*)(std::size_t)>(&foo, &Foo::bar); // ok auto thunk = member_thunk::make<void(*)(std::size_t) noexcept>(&foo, &Foo::bar); // associated constraints are not satisfied
Obviously, this should only enable when the called member function is noexcept too.
Currently, while
noexcept
member functions are supported,noexcept
function pointers aren't.Obviously, this should only enable when the called member function is
noexcept
too.