Skip to content

Commit

Permalink
forgot an api change for render(std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
martinus committed Aug 23, 2020
1 parent a1c207d commit f534e74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/include/nanobench.h
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ class Bench {
@endverbatim
*/
Bench& render(char const* templateContent, std::ostream& os);
Bench& render(std::string const& templateContent, std::ostream& os);

Bench& config(Config const& benchmarkConfig);
ANKERL_NANOBENCH(NODISCARD) Config const& config() const noexcept;
Expand Down Expand Up @@ -3181,6 +3182,11 @@ Bench& Bench::render(char const* templateContent, std::ostream& os) {
return *this;
}

Bench& Bench::render(std::string const& templateContent, std::ostream& os) {
::ankerl::nanobench::render(templateContent, *this, os);
return *this;
}

std::vector<BigO> Bench::complexityBigO() const {
std::vector<BigO> bigOs;
auto rangeMeasure = BigO::collectRangeMeasure(mResults);
Expand Down

0 comments on commit f534e74

Please sign in to comment.