MCPcopy Create free account
hub / github.com/PX4/eigen / operator+

Method operator+

test/exceptions.cpp:41–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 ScalarWithExceptions operator+(const ScalarWithExceptions& other) const
42 {
43 countdown--;
44 if(countdown<=0)
45 throw my_exception();
46 return ScalarWithExceptions(*v+*other.v);
47 }
48
49 ScalarWithExceptions operator-(const ScalarWithExceptions& other) const
50 { return ScalarWithExceptions(*v-*other.v); }

Callers

nothing calls this directly

Calls 2

my_exceptionClass · 0.85

Tested by

no test coverage detected