ページ
http://www.boost.org/doc/libs/1_42_0/doc/html/date_time/gregorian.html#date_construction
この種の呼び出しでBoost日付を初期化できることを説明します。
date d(2002, Jan, 10);
しかし、私がそれを試みると、コンパイラは「Jan」を知りません。
それは動作します:
date d(2002, 1, 10);
編集:
#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)
{
...
}
}