diff --git a/Examples-and-Recipes.md b/Examples-and-Recipes.md index 3dee666..8567ce0 100644 --- a/Examples-and-Recipes.md +++ b/Examples-and-Recipes.md @@ -172,7 +172,8 @@ I want to find all dates for some year `y` which are the 5th Friday of the month fifth_friday(date::year y) { using namespace date; - std::array dates{0_y/0/0, 0_y/0/0, 0_y/0/0, 0_y/0/0, 0_y/0/0}; + constexpr auto nan = 0_y/0/0; + std::array dates{nan, nan, nan, nan, nan}; unsigned n = 0; for (auto m = jan; true; ++m) {