| 1 |
/* SPDX-License-Identifier: BSL-1.0 OR BSD-3-Clause */ |
| 2 |
|
| 3 |
#ifndef MPT_FORMAT_DEFAULT_STRING_HPP |
| 4 |
#define MPT_FORMAT_DEFAULT_STRING_HPP |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#include "mpt/base/namespace.hpp" |
| 9 |
#include "mpt/string_transcode/transcode.hpp" |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
namespace mpt { |
| 14 |
inline namespace MPT_INLINE_NS { |
| 15 |
|
| 16 |
|
| 17 |
template <typename Tstring, typename T> |
| 18 |
inline auto format_value_default(const T & x) -> decltype(mpt::transcode<Tstring>(x)) { |
| 19 |
return mpt::transcode<Tstring>(x); |
| 20 |
} |
| 21 |
|
| 22 |
|
| 23 |
} // namespace MPT_INLINE_NS |
| 24 |
} // namespace mpt |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
#endif // MPT_FORMAT_DEFAULT_STRING_HPP |