Skip to content

Commit 5cc079c

Browse files
committed
[hist] Initialize std::atomic in test
Before LWG 2334, in implementations only fixed in C++20 and later, the value would be uninitialized.
1 parent 945cb26 commit 5cc079c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hist/histv7/test/hist_test.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ using ROOT::Experimental::Internal::RSliceBinIndexMapper;
4848
template <typename Work>
4949
void StressInParallel(std::size_t nThreads, Work &&w)
5050
{
51-
std::atomic<bool> flag;
51+
std::atomic<bool> flag = false;
5252

5353
std::vector<std::thread> threads;
5454
for (std::size_t i = 0; i < nThreads; i++) {

0 commit comments

Comments
 (0)