Commit efe3694f authored by Victor Zverovich's avatar Victor Zverovich

Macro tweak and clang-format

parent 9f312fe8
...@@ -57,6 +57,7 @@ ...@@ -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 @@ ...@@ -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> { ...@@ -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++();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment