mirror of
https://github.com/google/benchmark.git
synced 2025-04-02 15:40:53 +08:00
Merge branch 'new-api' into api-merge
This commit is contained in:
commit
6f2ee1a361
@ -124,7 +124,7 @@ class Benchmark {
|
||||
|
||||
static void AddRange(std::vector<int>* dst, int lo, int hi, int mult);
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(Benchmark)
|
||||
BENCHMARK_DISALLOW_COPY_AND_ASSIGN(Benchmark);
|
||||
};
|
||||
|
||||
// ------------------------------------------------------
|
||||
|
@ -19,13 +19,13 @@
|
||||
#endif
|
||||
|
||||
#if __cplusplus < 201103L
|
||||
# define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||
TypeName(const TypeName&); \
|
||||
TypeName& operator=(const TypeName&);
|
||||
# define BENCHMARK_DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||
TypeName(const TypeName&); \
|
||||
TypeName& operator=(const TypeName&)
|
||||
#else
|
||||
# define DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||
TypeName(const TypeName&) = delete; \
|
||||
TypeName& operator=(const TypeName&) = delete;
|
||||
# define BENCHMARK_DISALLOW_COPY_AND_ASSIGN(TypeName) \
|
||||
TypeName(const TypeName&) = delete; \
|
||||
TypeName& operator=(const TypeName&) = delete
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
|
@ -447,7 +447,7 @@ public:
|
||||
|
||||
private:
|
||||
Benchmark *imp_;
|
||||
DISALLOW_COPY_AND_ASSIGN(MinimalBenchmark)
|
||||
BENCHMARK_DISALLOW_COPY_AND_ASSIGN(MinimalBenchmark);
|
||||
};
|
||||
|
||||
|
||||
|
@ -104,7 +104,7 @@ private:
|
||||
std::atomic<int32_t> drift_adjust_;
|
||||
int64_t max_interval_cycles_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(WallTimeImp)
|
||||
BENCHMARK_DISALLOW_COPY_AND_ASSIGN(WallTimeImp);
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user