diff options
| author | levlam <levlam@telegram.org> | 2021-12-01 15:20:33 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-12-01 15:20:33 +0300 |
| commit | aa9f63acfec29d9b3f66b96a59a8ecbf8b7788c8 (patch) | |
| tree | 82d0c154e8a03028915b75ac843b5442f28e8067 /benchmark | |
| parent | 923dd11fd85cbce8460cc9d0cfd28fe1de475386 (diff) | |
Workaround https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480.
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/bench_actor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/benchmark/bench_actor.cpp b/benchmark/bench_actor.cpp index 82c88cfdd..a84949580 100644 --- a/benchmark/bench_actor.cpp +++ b/benchmark/bench_actor.cpp @@ -35,12 +35,14 @@ struct TestActor final : public td::Actor { td::int32 TestActor::actor_count_; +namespace td { template <> -class td::ActorTraits<TestActor> { +class ActorTraits<TestActor> { public: static constexpr bool need_context = false; static constexpr bool need_start_up = true; }; +} // namespace td class CreateActorBench final : public td::Benchmark { td::ConcurrentScheduler scheduler_; |
