Merge branch 'phoenix' of https://github.com/InvictusInnovations/fc into phoenix
This commit is contained in:
commit
34ac1baf82
2 changed files with 4 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ namespace fc
|
||||||
:exception(c){} \
|
:exception(c){} \
|
||||||
TYPE( const exception& c ) \
|
TYPE( const exception& c ) \
|
||||||
:exception(c){} \
|
:exception(c){} \
|
||||||
TYPE():exception(){}\
|
TYPE():exception(CODE, BOOST_PP_STRINGIZE(TYPE), WHAT){}\
|
||||||
\
|
\
|
||||||
virtual std::shared_ptr<exception> dynamic_copy_exception()const\
|
virtual std::shared_ptr<exception> dynamic_copy_exception()const\
|
||||||
{ return std::make_shared<TYPE>( *this ); } \
|
{ return std::make_shared<TYPE>( *this ); } \
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,9 @@ namespace fc {
|
||||||
time_point_sec( const time_point& t )
|
time_point_sec( const time_point& t )
|
||||||
:utc_seconds( t.time_since_epoch().count() / 1000000ll ){}
|
:utc_seconds( t.time_since_epoch().count() / 1000000ll ){}
|
||||||
|
|
||||||
|
static time_point_sec maximum() { return time_point_sec(0xffffffff); }
|
||||||
|
static time_point_sec min() { return time_point_sec(0); }
|
||||||
|
|
||||||
operator time_point()const { return time_point( fc::seconds( utc_seconds) ); }
|
operator time_point()const { return time_point( fc::seconds( utc_seconds) ); }
|
||||||
uint32_t sec_since_epoch()const { return utc_seconds; }
|
uint32_t sec_since_epoch()const { return utc_seconds; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue