aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-06-05 15:46:08 +0300
committerlevlam <levlam@telegram.org>2026-06-05 15:46:08 +0300
commitc19deb1c9fb6d1ecd37db8f4d8148666bbdbb79d (patch)
tree43f1d10ee84d03d917df61d211b997f713e59590 /benchmark
parentc5dfef637e27cc31d78811d7a255b84615582547 (diff)
Remove empty second parameter of static_assert.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bench_actor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bench_actor.cpp b/benchmark/bench_actor.cpp
index dee1d8aac..cd70c59c7 100644
--- a/benchmark/bench_actor.cpp
+++ b/benchmark/bench_actor.cpp
@@ -87,7 +87,7 @@ class RingBench final : public td::Benchmark {
public:
td::string get_description() const final {
static const char *types[] = {"later", "immediate", "raw", "tail", "lambda"};
- static_assert(0 <= type && type < 5, "");
+ static_assert(0 <= type && type < 5);
return PSTRING() << "Ring (send_" << types[type] << ") (threads_n = " << thread_n_ << ")";
}
@@ -174,7 +174,7 @@ class QueryBench final : public td::Benchmark {
public:
td::string get_description() const final {
static const char *types[] = {"callback", "immediate future", "delayed future", "dummy", "lambda", "lambda_future"};
- static_assert(0 <= type && type < 6, "");
+ static_assert(0 <= type && type < 6);
return PSTRING() << "QueryBench: " << types[type];
}