mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Macro tweak and clang-format
This commit is contained in:
parent
9f312fe87e
commit
efe3694f15
@ -57,6 +57,7 @@
|
|||||||
# define FMT_MSC_VER 0
|
# define FMT_MSC_VER 0
|
||||||
# define FMT_SUPPRESS_MSC_WARNING(n)
|
# define FMT_SUPPRESS_MSC_WARNING(n)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __has_feature
|
#ifdef __has_feature
|
||||||
# define FMT_HAS_FEATURE(x) __has_feature(x)
|
# define FMT_HAS_FEATURE(x) __has_feature(x)
|
||||||
#else
|
#else
|
||||||
@ -64,7 +65,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__has_include) && !defined(__INTELLISENSE__) && \
|
#if defined(__has_include) && !defined(__INTELLISENSE__) && \
|
||||||
!(FMT_ICC_VERSION && FMT_ICC_VERSION < 1600)
|
(!FMT_ICC_VERSION || FMT_ICC_VERSION >= 1600)
|
||||||
# define FMT_HAS_INCLUDE(x) __has_include(x)
|
# define FMT_HAS_INCLUDE(x) __has_include(x)
|
||||||
#else
|
#else
|
||||||
# define FMT_HAS_INCLUDE(x) 0
|
# define FMT_HAS_INCLUDE(x) 0
|
||||||
@ -846,11 +847,10 @@ template <typename T = char> class counting_buffer : public buffer<T> {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class buffer_appender : public std::back_insert_iterator<buffer<T>> {
|
class buffer_appender : public std::back_insert_iterator<buffer<T>> {
|
||||||
using base = std::back_insert_iterator<buffer<T>>;
|
using base = std::back_insert_iterator<buffer<T>>;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit buffer_appender(buffer<T>& buf)
|
explicit buffer_appender(buffer<T>& buf) : base(buf) {}
|
||||||
: base(buf) {}
|
buffer_appender(base it) : base(it) {}
|
||||||
buffer_appender(base it)
|
|
||||||
: base(it) {}
|
|
||||||
|
|
||||||
buffer_appender& operator++() {
|
buffer_appender& operator++() {
|
||||||
base::operator++();
|
base::operator++();
|
||||||
|
Loading…
Reference in New Issue
Block a user