Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f472a29

Browse files
committed
Added missing chrono header
1 parent aad3f79 commit f472a29

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
@@ -44,6 +44,7 @@ auto files = find_files_recursive("Path", [](const auto& p) {
4444
});
4545

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

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

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

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /