The page
http://www.boost.org/doc/libs/1_42_0/doc/html/date_time/gregorian.html#date_construction
explains that you can initialize a Boost date with this kind of call:
date d(2002, Jan, 10);
But when I try that, the compiler doesn't know 'Jan'.
It does work with:
date d(2002, 1, 10);
EDIT:
#include <boost/date_time/gregorian/gregorian.hpp>
..
{
using namespace boost::gregorian;
date limit_date(2010,Apr,1);
date fake_date(2010,2,1);
if (fake_date>limit_date)
{
...
}
}