MCPcopy Create free account
hub / github.com/boost-ext/te / Calc

Class Calc

test/te.cpp:393–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391};
392
393class Calc {
394 public:
395 constexpr explicit Calc(const int i = {}) : i_{i} {}
396
397 constexpr auto add(int i) { return i + i_; }
398 constexpr auto add(int a, int b) { return (a + b) + i_; }
399
400 private:
401 int i_{};
402};
403
404test should_support_overloads = [] {
405 te::poly<Addable> addable{Calc{2}};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected