MCPcopy Create free account
hub / github.com/pybind/pybind11 / noexcept_free_func

Function noexcept_free_func

tests/test_methods_and_attributes.cpp:229–229  ·  view source on GitHub ↗

Exercises overload_cast with noexcept free function pointers.

Source from the content-addressed store, hash-verified

227};
228// Exercises overload_cast with noexcept free function pointers.
229int noexcept_free_func(int x) noexcept { return x + 1; }
230int noexcept_free_func(float x) noexcept { return static_cast<int>(x) + 2; }
231
232// Exercises overload_cast with ref-qualified member function pointers.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected