fix namespace issue
This commit is contained in:
parent
00d3c6adf9
commit
fbfb08e340
@ -106,13 +106,15 @@ struct throws_on_move {
|
|||||||
throws_on_move(const throws_on_move&) = default;
|
throws_on_move(const throws_on_move&) = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <> struct fmt::formatter<throws_on_move> : formatter<string_view> {
|
namespace fmt {
|
||||||
|
template <> struct formatter<throws_on_move> : formatter<string_view> {
|
||||||
auto format(const throws_on_move&, format_context& ctx) const
|
auto format(const throws_on_move&, format_context& ctx) const
|
||||||
-> decltype(ctx.out()) {
|
-> decltype(ctx.out()) {
|
||||||
string_view str("<throws_on_move>");
|
string_view str("<throws_on_move>");
|
||||||
return formatter<string_view>::format(str, ctx);
|
return formatter<string_view>::format(str, ctx);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} // namespace fmt
|
||||||
|
|
||||||
TEST(std_test, variant) {
|
TEST(std_test, variant) {
|
||||||
#ifdef __cpp_lib_variant
|
#ifdef __cpp_lib_variant
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user