Skip to content

Commit

Permalink
- Fixed missing typedef (MSVC)
Browse files Browse the repository at this point in the history
  • Loading branch information
cantordust committed Oct 3, 2023
1 parent 6669eb3 commit 3342849
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions include/kep3/epoch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
namespace kep3 {
using namespace std::literals;
namespace chr = std::chrono;
using lint = long int;
using llint = long long int;
using uint = unsigned int;

template <typename T> struct is_duration : std::false_type {};

Expand All @@ -46,8 +45,8 @@ struct kep_clock : public chr::system_clock {

/**
* @brief Custom clock.
* Used for constructing epochs with a custom reference point.
* In particular, by defining a custom clock, we avoid the overflow
* Used for constructing epochs with a custom reference point (1 Jan 2000).
* By defining a custom clock, we avoid the overflow
* that std::chrono::system_clock suffers at +/- 292 years.
* To do that, we lower the resolution to 1 us (microsecond),
* which gives the clock a range of +/- 292 thousand years.
Expand Down Expand Up @@ -228,7 +227,7 @@ class kep3_DLL_PUBLIC epoch {

// Serialization code
friend class boost::serialization::access;
template <class Archive> void serialize(Archive &ar, const unsigned int) {
template <class Archive> void serialize(Archive &ar, const uint) {
ar &boost::serialization::make_binary_object(&tp, sizeof(tp));
}
// Serialization code (END)
Expand Down

0 comments on commit 3342849

Please sign in to comment.