Fix MAKE_YYYYMM macro to correctly limit the month to a somewhat less

invalid range. Thanks to rick68/gmail.com for finding this.
This commit is contained in:
Rene Rivera
2015-05-18 11:07:21 -05:00
parent e60f83f96a
commit 77561daca9

View File

@ -84,6 +84,6 @@ If the day is not available, but the month is, the 1st of the month is used as t
/*` `BOOST_PREDEF_MAKE_YYYY(V)` */
#define BOOST_PREDEF_MAKE_YYYY(V) BOOST_PREDEF_MAKE_DATE(V,1,1)
/*` `BOOST_PREDEF_MAKE_YYYYMM(V)` */
#define BOOST_PREDEF_MAKE_YYYYMM(V) BOOST_PREDEF_MAKE_DATE((V)/100,(V),1)
#define BOOST_PREDEF_MAKE_YYYYMM(V) BOOST_PREDEF_MAKE_DATE((V)/100,(V)%100,1)
#endif