Move Statistics struct to internal namespace (#753)

This commit is contained in:
Dominic Hamon 2019-01-15 13:19:36 +00:00 committed by GitHub
parent 4b9f43e2c4
commit 785e2c3158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -421,6 +421,7 @@ typedef double(BigOFunc)(int64_t);
// statistics over all the measurements of some type
typedef double(StatisticsFunc)(const std::vector<double>&);
namespace internal {
struct Statistics {
std::string name_;
StatisticsFunc* compute_;
@ -429,7 +430,6 @@ struct Statistics {
: name_(name), compute_(compute) {}
};
namespace internal {
struct BenchmarkInstance;
class ThreadTimer;
class ThreadManager;
@ -1373,7 +1373,7 @@ class BenchmarkReporter {
int64_t complexity_n;
// what statistics to compute from the measurements
const std::vector<Statistics>* statistics;
const std::vector<internal::Statistics>* statistics;
// Inform print function whether the current run is a complexity report
bool report_big_o;