Commit 698d9097 authored by Victor Zverovich's avatar Victor Zverovich

Workaround a bug in gcc 5.1

parent 81074c70
...@@ -646,8 +646,11 @@ class null_terminating_iterator { ...@@ -646,8 +646,11 @@ class null_terminating_iterator {
return ptr_ >= other.ptr_; return ptr_ >= other.ptr_;
} }
friend FMT_CONSTEXPR_DECL const Char *pointer_from<Char>( // This should be a friend specialization pointer_from<Char> but the latter
null_terminating_iterator it); // doesn't compile by gcc 5.1 due to a compiler bug.
template <typename CharT>
friend FMT_CONSTEXPR_DECL const CharT *pointer_from(
null_terminating_iterator<CharT> it);
private: private:
const Char *ptr_; const Char *ptr_;
......
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