namespace seafire::representation { template representation_t select(R const& rep, std::optional const& accepted_type) { using representation_traits = traits::representation_traits; static constexpr bool is_content_negotiable{ representation_traits::is_content_negotiable }; if constexpr (is_content_negotiable) { return rep.select(accepted_type); } else { return rep; } } } // namespace seafire::representation