From d6c5fed28088cc838d8ddb60656ff14515f7b7d3 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 30 May 2016 11:37:34 -0400 Subject: [PATCH] Updated Examples and Recipes (markdown) --- Examples-and-Recipes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {