| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
|
| |
|
|
|
|
| |
All users were converted to just use AssertionException.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
duration using decls.
This is a preliminary step for switching from stdx::chrono::duration to mongo::Duration.
|
|
|