Skip to content

Commit 4638879

Browse files
committed
fixed exemple needing std=c++20
1 parent 29112d8 commit 4638879

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

snippets/cpp/file-handling/find-files-recursive.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ auto files = find_files_recursive("Path", [](const auto& p) {
4545

4646
// Find all files writed after The New Year
4747
#include <chrono>
48+
// need std=c++20
4849
auto jan_1_2025 = std::filesystem::file_time_type::clock::from_sys(
4950
std::chrono::sys_days{std::chrono::year{2025}/std::chrono::month{1}/std::chrono::day{1}}
5051
);

snippets/cpp/file-handling/find-files.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ auto files = find_files("Path", [](const auto& p) {
4545

4646
// Find all files writed after The New Year
4747
#include <chrono>
48+
// need std=c++20
4849
auto jan_1_2025 = std::filesystem::file_time_type::clock::from_sys(
4950
std::chrono::sys_days{std::chrono::year{2025}/std::chrono::month{1}/std::chrono::day{1}}
5051
);

0 commit comments

Comments
 (0)