Skip to content

Commit

Permalink
gcc12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
TinyTinni committed Jul 9, 2024
1 parent b62ae84 commit 9c45f14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/DirectoryTriggerCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include <doctest.h>

#include <filesystem>
#include <format>

#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
Expand Down Expand Up @@ -70,8 +69,9 @@ TEST_SUITE("DirectoryTriggerCamera")

for (auto i = 0; i < n_images; ++i)
{
cv::imwrite((new_dir / std::format("output{}.png", i)).string(),
cv::Mat(16, 16, CV_8UC3));
cv::imwrite(
(new_dir / ("output" + std::to_string(i) + ".png")).string(),
cv::Mat(16, 16, CV_8UC3));
CHECK(cam.read(mat));
CHECK(!mat.empty());
}
Expand Down

0 comments on commit 9c45f14

Please sign in to comment.