Skip to content

Commit

Permalink
Workaround msvc 14.32/33 bug (see fmtlib/fmt#3224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaim committed Dec 11, 2022
1 parent d5d8482 commit 5d921dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 0 additions & 3 deletions manifest
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ package-email: [email protected]
depends: * build2 >= 0.15.0
depends: * bpkg >= 0.15.0

build-exclude: **windows_10-msvc_17.2** ; See https://github.com/fmtlib/fmt/issues/3224
build-exclude: **windows_10-msvc_17.3** ; See https://github.com/fmtlib/fmt/issues/3224

4 changes: 3 additions & 1 deletion tests/basics/tests.inl
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ struct fmt::formatter<date> {

template <typename FormatContext>
auto format(const date& d, FormatContext& ctx) {
return format_to(ctx.out(), "{}-{}-{}", d.year, d.month, d.day);
// Namespace-qualify to avoid ambiguity with std::format_to.
fmt::format_to(ctx.out(), "{}-{}-{}", d.year, d.month, d.day);
return ctx.out();
}
};

Expand Down

0 comments on commit 5d921dc

Please sign in to comment.