mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
Make wchar_t overloads usable in module
Bring ''detail::find()' into scope.
This commit is contained in:
committed by
Victor Zverovich
parent
355be4b13f
commit
342973b349
@@ -2998,6 +2998,9 @@ FMT_CONSTEXPR const Char* parse_replacement_field(const Char* begin,
|
|||||||
template <bool IS_CONSTEXPR, typename Char, typename Handler>
|
template <bool IS_CONSTEXPR, typename Char, typename Handler>
|
||||||
FMT_CONSTEXPR_DECL FMT_INLINE void parse_format_string(
|
FMT_CONSTEXPR_DECL FMT_INLINE void parse_format_string(
|
||||||
basic_string_view<Char> format_str, Handler&& handler) {
|
basic_string_view<Char> format_str, Handler&& handler) {
|
||||||
|
// this is most likely a name-lookup defect in msvc's modules implementation
|
||||||
|
using detail::find;
|
||||||
|
|
||||||
auto begin = format_str.data();
|
auto begin = format_str.data();
|
||||||
auto end = begin + format_str.size();
|
auto end = begin + format_str.size();
|
||||||
if (end - begin < 32) {
|
if (end - begin < 32) {
|
||||||
|
Reference in New Issue
Block a user