Skip to content

Commit

Permalink
Forward declare is_string<FILE*> specializations
Browse files Browse the repository at this point in the history
  • Loading branch information
riccozzz authored and vitaut committed Mar 19, 2019
1 parent b742f62 commit 6d416cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,10 @@ struct is_string
decltype(to_string_view(declval<S>()))>::value> {
};

// Forward declare FILE* specialization defined in color.h
template <> struct is_string<std::FILE*>;
template <> struct is_string<const std::FILE*>;

template <typename S> struct char_t {
typedef decltype(to_string_view(declval<S>())) result;
typedef typename result::char_type type;
Expand Down

0 comments on commit 6d416cf

Please sign in to comment.