MCPcopy Create free account
hub / github.com/Naios/function2 / custom_falsy_invocable

Class custom_falsy_invocable

test/regressions.cpp:211–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211struct custom_falsy_invocable {
212 operator bool() const {
213 return false;
214 }
215 int operator()() const {
216 return 0;
217 }
218};
219
220TEST(regression_tests, custom_falsy_invocable) {
221 fu2::function<int()> f(custom_falsy_invocable{});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected