File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
power_grid_model_c/power_grid_model/include/power_grid_model/common Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ class CalculationInfo : public NoLogger {
1717 using Report = std::add_lvalue_reference_t <std::add_const_t <Data>>;
1818 static_assert (std::same_as<Report, Data const &>);
1919
20- void log (LogEvent tag, double value) override { log_impl (tag, value); }
21- void log (LogEvent tag, Idx value) override { log_impl (tag, static_cast <double >(value)); }
20+ virtual void log (LogEvent tag, double value) override { log_impl (tag, value); }
21+ virtual void log (LogEvent tag, Idx value) override { log_impl (tag, static_cast <double >(value)); }
2222
2323 private:
2424 Data data_;
Original file line number Diff line number Diff line change 1111
1212namespace power_grid_model ::common::logging {
1313class NoLogger : public Logger {
14- virtual void log (LogEvent /* tag*/ ) override { /* no logging */ }
15- virtual void log (LogEvent /* tag*/ , std::string_view /* message*/ ) override { /* no logging */ }
16- virtual void log (LogEvent /* tag*/ , double /* value*/ ) override { /* no logging */ }
17- virtual void log (LogEvent /* tag*/ , Idx /* value*/ ) override { /* no logging */ }
14+ void log (LogEvent /* tag*/ ) override {
15+ // no logging
16+ }
17+ void log (LogEvent /* tag*/ , std::string_view /* message*/ ) override {
18+ // no logging
19+ }
20+ void log (LogEvent /* tag*/ , double /* value*/ ) override {
21+ // no logging
22+ }
23+ void log (LogEvent /* tag*/ , Idx /* value*/ ) override {
24+ // no logging
25+ }
1826};
1927
2028} // namespace power_grid_model::common::logging
You can’t perform that action at this time.
0 commit comments