Skip to content

Commit 1e2a086

Browse files
yfeldblumfacebook-github-bot
authored andcommitted
fix StringPiece conversion to fmt::format_string
Summary: X-link: facebook/folly#2471 Only define conversion `StringPiece::operator fmt::string_view` for older versions of `fmt`. Fixes: facebook/folly#2468. Reviewed By: DenisYaroshevskiy Differential Revision: D77799250 fbshipit-source-id: 2948fe4f8f9c0811cb92646abc7c36acce6bfa38
1 parent a26bce5 commit 1e2a086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third-party/folly/src/folly/Range.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ class Range {
714714
return Tgt(b_, walk_size());
715715
}
716716

717-
#if FMT_VERSION
717+
#if FMT_VERSION < 100000
718718
template <
719719
typename IterType = Iter,
720720
std::enable_if_t<detail::range_is_char_type_v_<IterType>, int> = 0>

0 commit comments

Comments
 (0)