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 b8f57b9 commit 9ecc8a5Copy full SHA for 9ecc8a5
Example/Benchmark/Source/main.cpp
@@ -11,7 +11,7 @@
11
template <std::size_t NumberOfPusherThreads, std::size_t NumberOfPopperThreads, typename RingType>
12
std::pair<std::size_t, std::chrono::nanoseconds> run_benchmark(RingType &ring)
13
{
14
- constexpr std::size_t PushCount = 1024 * 1024;
+ static constexpr std::size_t PushCount = 1024 * 1024;
15
16
std::vector<std::thread> pushers;
17
std::vector<std::thread> poppers;
@@ -70,7 +70,7 @@ void run_benchmark_and_print_results(RingType &ring)
70
71
int main()
72
73
- constexpr static std::size_t RingSize = 1024;
+ static constexpr std::size_t RingSize = 1024;
74
75
76
std::cout << "Running benchmark on MCMP queue." << std::endl;
0 commit comments