diff --git a/example.cpp b/example.cpp index 0e6d162..34a46f0 100644 --- a/example.cpp +++ b/example.cpp @@ -1,9 +1,9 @@ #include "static_todo.hpp" // global namespace -TODO_BEFORE(12, 2018, "update this example to pass the CI"); +TODO_BEFORE(12, 2020, "update this example to pass the CI"); int main() { // inside a function - FIXME_BEFORE(01, 2019, "update this example to pass the CI"); + FIXME_BEFORE(01, 2020, "update this example to pass the CI"); } diff --git a/static_todo.hpp b/static_todo.hpp index 9c2ed57..149b031 100644 --- a/static_todo.hpp +++ b/static_todo.hpp @@ -45,14 +45,14 @@ constexpr int current_build_month() { /// Example: /// TODO_BEFORE(01, 2019, "refactor to use std::optional<> once we compile in C++17 mode"); #define TODO_BEFORE(month, year, msg) \ - static_assert((year >= 2018 && month > 0 && month <= 12) && \ + static_assert((year >= 2019 && month > 0 && month <= 12) && \ (current_build_year() < year || \ (current_build_year() == year && current_build_month() < month)), \ "TODO: " msg) /// FIXME_BEFORE() works the same way than TODO_BEFORE() but triggers a "FIXME" error instead #define FIXME_BEFORE(month, year, msg) \ - static_assert((year >= 2018 && month > 0 && month <= 12) && \ + static_assert((year >= 2019 && month > 0 && month <= 12) && \ (current_build_year() < year || \ (current_build_year() == year && current_build_month() < month)), \ "FIXME: " msg)