Skip to content

Commit

Permalink
prevent ""fmt/range.h"" from specializing fmt::basic_string_view (#865)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhggit authored and vitaut committed Sep 20, 2018
1 parent e4fc856 commit 70a6a4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/fmt/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ class is_like_std_string {
!std::is_void<decltype(check<T>(FMT_NULL))>::value;
};

template <typename Char>
struct is_like_std_string<fmt::basic_string_view<Char>> : std::true_type {};

template <typename... Ts>
struct conditional_helper {};

Expand Down

0 comments on commit 70a6a4b

Please sign in to comment.