Small refactoring and support wchar again

This commit is contained in:
gabime
2018-10-19 16:48:22 +03:00
parent 23da9f13b0
commit c2a9bf9974
3 changed files with 14 additions and 7 deletions

View File

@@ -13,6 +13,11 @@ namespace spdlog {
namespace details {
namespace fmt_helper {
template<size_t Buffer_Size>
inline fmt::string_view to_string_view(const fmt::basic_memory_buffer<char, Buffer_Size> &buf) SPDLOG_NOEXCEPT
{
return fmt::string_view(buf.data(), buf.size());
}
template<size_t Buffer_Size1, size_t Buffer_Size2>
inline void append_buf(const fmt::basic_memory_buffer<char, Buffer_Size1> &buf, fmt::basic_memory_buffer<char, Buffer_Size2> &dest)
{