Skip to content

Support and propagate noexcept-qualified function types #15

@RedBeard0531

Description

@RedBeard0531

@Naios

Basically, I want this to work

// This works today
using yesexcept_func = fu2::function<void()>;
static_assert(!noexcept(std::declval<yesexcept_func>()()));

// This fails to compile
using noexcept_func = fu2::function<void() noexcept>;
static_assert(noexcept(std::declval<noexcept_func>()()));

https://godbolt.org/g/zxVvKT
Propagation may require c++17.

(Removed most of the issue template boilerplate since it doesn't seem to apply to feature requests)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions