snitch-org / snitch

Lightweight C++20 testing framework.
Boost Software License 1.0
262 stars 7 forks source link

`small_function` is not copy-constructible from another non-const object #105

Closed cschreib closed 1 year ago

cschreib commented 1 year ago

The choice of constructor is "ambiguous" when passing a non-const reference to a small_function object, because of the other constructors from functors. We need to improve the way constructors are constrained to avoid this.