Revert "refactor: got rid of CRTP for latitude and longitude"

This reverts commit 65fed78c98.
This commit is contained in:
Mateusz Pusz
2021-11-10 19:45:39 +01:00
parent 65fed78c98
commit 3c2b705ded

View File

@@ -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;
}; };