mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-04 17:26:42 +00:00
Workaround a bug in gcc 5.1
This commit is contained in:
parent
81074c7048
commit
698d909706
@ -646,8 +646,11 @@ class null_terminating_iterator {
|
||||
return ptr_ >= other.ptr_;
|
||||
}
|
||||
|
||||
friend FMT_CONSTEXPR_DECL const Char *pointer_from<Char>(
|
||||
null_terminating_iterator it);
|
||||
// This should be a friend specialization pointer_from<Char> but the latter
|
||||
// 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:
|
||||
const Char *ptr_;
|
||||
|
Loading…
Reference in New Issue
Block a user