mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
Revert "refactor: got rid of CRTP for latitude
and longitude
"
This reverts commit 65fed78c98
.
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
|
|
||||||
namespace geographic {
|
namespace geographic {
|
||||||
|
|
||||||
template<typename Rep>
|
template<typename Derived, typename Rep>
|
||||||
struct coordinate {
|
struct coordinate {
|
||||||
using value_type = Rep;
|
using value_type = Rep;
|
||||||
constexpr explicit coordinate(value_type v) : value_(v) {}
|
constexpr explicit coordinate(value_type v) : value_(v) {}
|
||||||
@@ -45,11 +45,11 @@ private:
|
|||||||
value_type value_;
|
value_type value_;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct latitude : coordinate<double> {
|
struct latitude : coordinate<latitude, double> {
|
||||||
using coordinate::coordinate;
|
using coordinate::coordinate;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct longitude : coordinate<double> {
|
struct longitude : coordinate<longitude, double> {
|
||||||
using coordinate::coordinate;
|
using coordinate::coordinate;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user