mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-02-23 05:52:11 +00:00
SmallString: Prep for fmt update
This commit is contained in:
parent
754057b496
commit
56aa5d9657
@ -10,6 +10,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstdarg>
|
||||
#include <cstring>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@ -177,7 +178,7 @@ public:
|
||||
__fi const char* end_ptr() const { return m_buffer + m_length; }
|
||||
|
||||
// STL adapters
|
||||
__fi void push_back(value_type&& val) { append(val); }
|
||||
__fi void push_back(value_type val) { append(val); }
|
||||
|
||||
// returns a string view for this string
|
||||
std::string_view view() const;
|
||||
@ -413,7 +414,7 @@ __fi void SmallStringBase::format(fmt::format_string<T...> fmt, T&&... args)
|
||||
} \
|
||||
\
|
||||
template <typename FormatContext> \
|
||||
auto format(const type& str, FormatContext& ctx) \
|
||||
auto format(const type& str, FormatContext& ctx) const \
|
||||
{ \
|
||||
return fmt::format_to(ctx.out(), "{}", str.view()); \
|
||||
} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user