summaryrefslogtreecommitdiff
path: root/src/mongo/util/duration.h
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-14/+17
|
* SERVER-30580 Eliminate UserException and MsgAssertionException typesMathias Stearn2017-08-161-4/+4
| | | | All users were converted to just use AssertionException.
* SERVER-22973 use mongo macros for static assertMatt Cotter2016-09-091-18/+24
|
* SERVER-23971 Clang-Format codeMark Benvenuto2016-05-281-2/+1
|
* SERVER-24104 sfinae duration ctor overloadsJason Carey2016-05-201-3/+5
| | | | | | | | | | | | We can't just static_assert in the duration constructors, because we need overload resolution to continue and find things like implicit conversions that then dispatch to default copy constructors. This adds standard required sfinae to those ctors. In other cases where the standard uses sfinae, it's either not needed for us (because we don't require extension of duration types and we only have integral duration reps) or appears not necessary now (several arithmetic overloads could theoretically have other targets, but for the moment I think it's unlikely that we'd expect Milliseconds{} / MySpecialNonRepType{} to actually work). We'll have to revisit sfinae in those cases if we ever do.
* SERVER-24104 Replace stdx::duration with mongo::Duration.Andy Schwerin2016-05-171-11/+38
| | | | | | | The mongo::Duration type does overflow checking on casts and arithmetic. This patch also moves DESTRUCTOR_GUARD out of assert_util.h into destructor_guard.h in order to break an include cycle with duration.h.
* SERVER-24104 Replace direct uses of stdx::chrono::durations with MongoDB ↵Andy Schwerin2016-05-171-0/+5
| | | | | | duration using decls. This is a preliminary step for switching from stdx::chrono::duration to mongo::Duration.
* Introduce a replacement for std::chrono::duration without undefined behavior.Andy Schwerin2016-05-171-0/+410