diff --git a/seafire/routing/host-parameter.hxx b/seafire/routing/host-parameter.hxx index 6cd87a7..5a79e1c 100644 --- a/seafire/routing/host-parameter.hxx +++ b/seafire/routing/host-parameter.hxx @@ -16,23 +16,18 @@ namespace seafire::routing typename ParameterType = server::string_parameter_t > class host_parameter_t + : public server::named_parameter_t { public: using parameter_type = ParameterType; using value_type = typename parameter_type::value_type; - static - std::string const& - name() - { - static std::string const name{Name}; - return name; - } - host_parameter_t(std::optional value) : _value{std::move(value)} {} + using server::named_parameter_t::name; + std::optional const& value() const { diff --git a/seafire/routing/route-parameter.hxx b/seafire/routing/route-parameter.hxx index f91d036..564742a 100644 --- a/seafire/routing/route-parameter.hxx +++ b/seafire/routing/route-parameter.hxx @@ -16,23 +16,18 @@ namespace seafire::routing typename ParameterType = server::string_parameter_t > class route_parameter_t + : public server::named_parameter_t { public: using parameter_type = ParameterType; using value_type = typename parameter_type::value_type; - static - std::string const& - name() - { - static std::string const name{Name}; - return name; - } - route_parameter_t(std::optional value) : _value{std::move(value)} {} + using server::named_parameter_t::name; + std::optional const& value() const {