mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-26 06:25:40 +02:00

Technically we should be able to remove moveability as well, but then we would need a larger surgery. This already improves the compile times and binary sizes by a surprising amount.
24 lines
716 B
C++
24 lines
716 B
C++
|
|
// Copyright Catch2 Authors
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE.txt or copy at
|
|
// https://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
|
|
#include <catch2/benchmark/detail/catch_benchmark_function.hpp>
|
|
|
|
namespace Catch {
|
|
namespace Benchmark {
|
|
namespace Detail {
|
|
struct do_nothing {
|
|
void operator()() const {}
|
|
};
|
|
|
|
BenchmarkFunction::callable::~callable() = default;
|
|
BenchmarkFunction::BenchmarkFunction():
|
|
f( new model<do_nothing>{ {} } ){}
|
|
} // namespace Detail
|
|
} // namespace Benchmark
|
|
} // namespace Catch
|