mirror of
https://github.com/boostorg/date_time.git
synced 2026-02-22 15:22:15 +00:00
fix the posix_time constructor to accept special values
[SVN r22590]
This commit is contained in:
@@ -45,6 +45,10 @@ namespace posix_time {
|
||||
ptime(const time_rep_type& rhs):
|
||||
date_time::base_time<time_type,time_system_type>(rhs)
|
||||
{}
|
||||
//! Construct from special value
|
||||
ptime(const special_values sv) : date_time::base_time<time_type,time_system_type>(gregorian::date(sv), time_duration_type(sv))
|
||||
{}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user