18 lines
353 B
C++
18 lines
353 B
C++
#pragma once
|
|
|
|
#define EXERCISM_RUN_ALL_TESTS
|
|
|
|
#include <boost/date_time/gregorian/gregorian.hpp>
|
|
|
|
|
|
namespace gigasecond {
|
|
|
|
typedef boost::gregorian::date date_t;
|
|
typedef boost::gregorian::date_duration date_duration_t;
|
|
|
|
static inline date_t advance(const date_t &date)
|
|
{
|
|
return date + date_duration_t(1000000000 / (60*60*24));
|
|
}
|
|
|
|
}
|