mirror of
https://github.com/boostorg/predef.git
synced 2025-07-29 11:37:13 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user