@@ -247,9 +247,9 @@ void json_printer::do_process_bulk_data_float64(state &state,
247247 }
248248 catch (std::exception &e)
249249 {
250- if (auto printer_opt_ref = state.get_benchmark ().get_printer (); printer_opt_ref .has_value ())
250+ if (auto printer_opt_ptr = state.get_benchmark ().get_printer (); printer_opt_ptr .has_value ())
251251 {
252- auto &printer = printer_opt_ref .value (). get ( );
252+ auto &printer = *(printer_opt_ptr .value ());
253253 printer.log (
254254 nvbench::log_level::warn,
255255 fmt::format (" Error writing {} ({}) to {}: {}" , tag, hint, result_path.string (), e.what ()));
@@ -267,9 +267,9 @@ void json_printer::do_process_bulk_data_float64(state &state,
267267 summ.set_string (" hide" , " Not needed in table." );
268268
269269 timer.stop ();
270- if (auto printer_opt_ref = state.get_benchmark ().get_printer (); printer_opt_ref .has_value ())
270+ if (auto printer_opt_ptr = state.get_benchmark ().get_printer (); printer_opt_ptr .has_value ())
271271 {
272- auto &printer = printer_opt_ref .value (). get ( );
272+ auto &printer = *(printer_opt_ptr .value ());
273273 printer.log (
274274 nvbench::log_level::info,
275275 fmt::format (" Wrote '{}' in {:>6.3f}ms" , result_path.string (), timer.get_duration () * 1000 ));
@@ -307,9 +307,9 @@ void json_printer::do_process_bulk_data_float64(state &state,
307307 }
308308 catch (std::exception &e)
309309 {
310- if (auto printer_opt_ref = state.get_benchmark ().get_printer (); printer_opt_ref .has_value ())
310+ if (auto printer_opt_ptr = state.get_benchmark ().get_printer (); printer_opt_ptr .has_value ())
311311 {
312- auto &printer = printer_opt_ref .value (). get ( );
312+ auto &printer = *(printer_opt_ptr .value ());
313313 printer.log (
314314 nvbench::log_level::warn,
315315 fmt::format (" Error writing {} ({}) to {}: {}" , tag, hint, result_path.string (), e.what ()));
@@ -327,9 +327,9 @@ void json_printer::do_process_bulk_data_float64(state &state,
327327 summ.set_string (" hide" , " Not needed in table." );
328328
329329 timer.stop ();
330- if (auto printer_opt_ref = state.get_benchmark ().get_printer (); printer_opt_ref .has_value ())
330+ if (auto printer_opt_ptr = state.get_benchmark ().get_printer (); printer_opt_ptr .has_value ())
331331 {
332- auto &printer = printer_opt_ref .value (). get ( );
332+ auto &printer = *(printer_opt_ptr .value ());
333333 printer.log (
334334 nvbench::log_level::info,
335335 fmt::format (" Wrote '{}' in {:>6.3f}ms" , result_path.string (), timer.get_duration () * 1000 ));
0 commit comments