mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
formatting
This commit is contained in:
@@ -17,7 +17,8 @@ namespace fmt {
|
||||
|
||||
namespace internal {
|
||||
|
||||
template<class Char> class FormatBuf : public std::basic_streambuf<Char>
|
||||
template<class Char>
|
||||
class FormatBuf : public std::basic_streambuf<Char>
|
||||
{
|
||||
private:
|
||||
typedef typename std::basic_streambuf<Char>::int_type int_type;
|
||||
@@ -60,12 +61,14 @@ struct DummyStream : std::ostream
|
||||
DummyStream(); // Suppress a bogus warning in MSVC.
|
||||
|
||||
// Hide all operator<< overloads from std::ostream.
|
||||
template<typename T> typename EnableIf<sizeof(T) == 0>::type operator<<(const T &);
|
||||
template<typename T>
|
||||
typename EnableIf<sizeof(T) == 0>::type operator<<(const T &);
|
||||
};
|
||||
|
||||
No &operator<<(std::ostream &, int);
|
||||
|
||||
template<typename T> struct ConvertToIntImpl<T, true>
|
||||
template<typename T>
|
||||
struct ConvertToIntImpl<T, true>
|
||||
{
|
||||
// Convert to int only if T doesn't have an overloaded operator<<.
|
||||
enum
|
||||
|
Reference in New Issue
Block a user