From 35878b76049b9c3e752480e9f298b7e2da6fdf1f Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Fri, 28 Aug 2026 23:29:00 +0200 Subject: Make RWGPS config optional --- server/src/srv.cppm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/src/srv.cppm') diff --git a/server/src/srv.cppm b/server/src/srv.cppm index aef28f4..904bf1a 100644 --- a/server/src/srv.cppm +++ b/server/src/srv.cppm @@ -36,17 +36,20 @@ class gpx_parse_error_category_impl : public std::error_category { public: char const* name() const noexcept override { return "gpx_parse"; } + auto message(int condition) const noexcept -> std::string override { std::ignore = condition; return "failed to parse GPX file"; } }; + auto gpx_parse_error_category() noexcept -> gpx_parse_error_category_impl const& { static auto const inst = gpx_parse_error_category_impl{}; return inst; } + auto gpx_parse_error() noexcept -> std::error_code { return std::error_code{1, gpx_parse_error_category()}; -- cgit v1.3