MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / operator+

Method operator+

01.12-testingRequirements0/main.cpp:52–56  ·  view source on GitHub ↗

#C Operator plus with invalid return type

Source from the content-addressed store, hash-verified

50
51 // #C Operator plus with invalid return type
52 int operator+(const Stub& rhs) noexcept(nexcept)
53 requires(operatorPlus && not validReturnType)
54 {
55 return {};
56 }
57};
58
59// #D Create the different stubs from the class template

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected