From 65fed78c98ec66686670674b385d63ff7f638a7e Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 10 Nov 2021 19:44:22 +0100 Subject: [PATCH] refactor: got rid of CRTP for `latitude` and `longitude` --- example/glide_computer/include/geographic.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/example/glide_computer/include/geographic.h b/example/glide_computer/include/geographic.h index 731425e3..e1db108a 100644 --- a/example/glide_computer/include/geographic.h +++ b/example/glide_computer/include/geographic.h @@ -35,7 +35,7 @@ namespace geographic { -template +template struct coordinate { using value_type = Rep; constexpr explicit coordinate(value_type v) : value_(v) {} @@ -45,11 +45,11 @@ private: value_type value_; }; -struct latitude : coordinate { +struct latitude : coordinate { using coordinate::coordinate; }; -struct longitude : coordinate { +struct longitude : coordinate { using coordinate::coordinate; };