There was an error while loading. Please reload this page.
2 parents a5c3dc3 + 4670d51 commit f874f4cCopy full SHA for f874f4c
include/cpp2util.h
@@ -771,6 +771,15 @@ inline auto to_string(T const& sv) -> std::string
771
return std::string{sv};
772
}
773
774
+template <typename... Ts>
775
+inline auto to_string(std::variant<Ts...> const& v) -> std::string;
776
+
777
+template < typename T, typename U>
778
+inline auto to_string(std::pair<T,U> const& p) -> std::string;
779
780
+template < typename... Ts>
781
+inline auto to_string(std::tuple<Ts...> const& t) -> std::string;
782
783
template<typename T>
784
inline auto to_string(std::optional<T> const& o) -> std::string {
785
if (o.has_value()) {
0 commit comments