mirror of
https://github.com/gabime/spdlog.git
synced 2025-03-04 05:05:48 +08:00
Test attributes: fixing wrongful lambda capture
constexpr doesn't need to be captured. failed ci/cd
This commit is contained in:
parent
7964f9ea9a
commit
ef054062c4
@ -182,7 +182,7 @@ TEST_CASE("attribute test - multi threaded") {
|
||||
// put attributes with multiple threads simultaneously
|
||||
std::vector<std::future<void>> tasks;
|
||||
for (unsigned int i = 0; i < n_tasks; ++i) {
|
||||
auto task = std::async([&logger, i, n_values] {
|
||||
auto task = std::async([&logger, i] {
|
||||
for (auto j = 0; j < n_values; ++j)
|
||||
logger.attrs().put(fmt_lib::format("log_{}_key_{}", i, j), fmt_lib::format("log_{}_value_{}", i, j));
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user