Skip to content

Commit

Permalink
fix: <print> isn't available everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
DeveloperPaul123 committed Apr 26, 2024
1 parent 05d5ce3 commit 13b9c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/source/thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <thread_pool/version.h>

#include <algorithm>
#include <format>
#include <iostream>
#include <numeric>
#include <print>
#include <random>
#include <string>
#include <thread>
Expand Down Expand Up @@ -451,7 +451,7 @@ TEST_CASE("Initialization function is called") {
std::atomic_int counter = 0;
{
dp::thread_pool pool(4, [&counter](std::size_t id) {
std::print("Thread {} initialized\n", id);
std::cout << std::format("Thread {} initialized\n", id);
counter.fetch_add(1);
});
}
Expand Down

0 comments on commit 13b9c82

Please sign in to comment.