We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 345ac67 commit 93d9a3dCopy full SHA for 93d9a3d
libcxx/test/benchmarks/containers/container_benchmarks.h
@@ -383,7 +383,10 @@ void sequence_container_benchmarks(std::string container) {
383
}
384
385
// constructors
386
- benchmark::RegisterBenchmark(container + "::ctor(size)", BM_ctor_size<Container>)->Arg(1024);
+ if constexpr (std::is_constructible_v<Container, std::size_t>) {
387
+ // not all containers provide this one
388
+ benchmark::RegisterBenchmark(container + "::ctor(size)", BM_ctor_size<Container>)->Arg(1024);
389
+ }
390
for (auto gen : generators)
391
benchmark::RegisterBenchmark(container + "::ctor(size, value_type)" + tostr(gen), [=](auto& st) {
392
BM_ctor_size_value<Container>(st, gen);
0 commit comments