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

Function f1

tests/test_constants_and_functions.cpp:49–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47// it fails to compile with a plain noexcept (tested with icc (ICC) 2021.1 Beta 20200827).
48#if defined(__INTEL_COMPILER) && defined(PYBIND11_CPP17)
49int f1(int x) noexcept(true) { return x + 1; }
50#else
51int f1(int x) noexcept { return x + 1; }
52#endif

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected