// // Copyright (c) 2019-2025 Ruben Perez Hidalgo (rubenperez038 at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef BOOST_MYSQL_TEST_COMMON_INCLUDE_TEST_COMMON_STRINGIZE_HPP #define BOOST_MYSQL_TEST_COMMON_INCLUDE_TEST_COMMON_STRINGIZE_HPP #include #include namespace boost { namespace mysql { namespace test { inline void stringize_helper(std::ostream&) noexcept {} template void stringize_helper(std::ostream& os, const T& input, const Types&... tail) { os << input; stringize_helper(os, tail...); } template std::string stringize(const Types&... inputs) { std::ostringstream ss; stringize_helper(ss, inputs...); return ss.str(); } } // namespace test } // namespace mysql } // namespace boost #endif