Skip to content

Commit 9ecc8a5

Browse files
Fix benchmark example comstexprs.
1 parent b8f57b9 commit 9ecc8a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Example/Benchmark/Source/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
template <std::size_t NumberOfPusherThreads, std::size_t NumberOfPopperThreads, typename RingType>
1212
std::pair<std::size_t, std::chrono::nanoseconds> run_benchmark(RingType &ring)
1313
{
14-
constexpr std::size_t PushCount = 1024 * 1024;
14+
static constexpr std::size_t PushCount = 1024 * 1024;
1515

1616
std::vector<std::thread> pushers;
1717
std::vector<std::thread> poppers;
@@ -70,7 +70,7 @@ void run_benchmark_and_print_results(RingType &ring)
7070

7171
int main()
7272
{
73-
constexpr static std::size_t RingSize = 1024;
73+
static constexpr std::size_t RingSize = 1024;
7474

7575
{
7676
std::cout << "Running benchmark on MCMP queue." << std::endl;

0 commit comments

Comments
 (0)