Struct optimized_away_error

Synopsis

#include <include/internal/benchmark/detail/catch_run_for_at_least.hpp>

struct optimized_away_error : std::exception

Description

No description yet.

Inheritance

Ancestors: std::exception

Methods

what

Source

Lines 42-46 in include/internal/benchmark/detail/catch_run_for_at_least.hpp.

struct optimized_away_error : std::exception {
    const char* what() const noexcept override {
        return "could not measure benchmark, maybe it was optimized away";
    }
};





Add Discussion as Guest

Log in