Remove problematic constructibility check
This commit is contained in:
+4
-2
@@ -72,8 +72,10 @@ struct explicitly_convertible_to_wstring_view {
|
||||
};
|
||||
|
||||
TEST(xchar_test, format_explicitly_convertible_to_wstring_view) {
|
||||
EXPECT_EQ(L"foo",
|
||||
fmt::format(L"{}", explicitly_convertible_to_wstring_view()));
|
||||
// Types explicitly convertible to wstring_view are not formattable by
|
||||
// default because it may introduce ODR violations.
|
||||
static_assert(
|
||||
!fmt::is_formattable<explicitly_convertible_to_wstring_view>::value, "");
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user