mirror of
https://github.com/fmtlib/fmt.git
synced 2025-10-31 22:21:41 +01:00
Don't inject internal names into std (#1120)
This commit is contained in:
@@ -2540,6 +2540,11 @@ TEST(FormatTest, EmphasisNonHeaderOnly) {
|
||||
}
|
||||
|
||||
TEST(FormatTest, CharTraitsIsNotAmbiguous) {
|
||||
// Test that we don't inject internal names into the std namespace.
|
||||
using namespace std;
|
||||
char_traits<char>::char_type c;
|
||||
#if __cplusplus >= 201103L
|
||||
std::string s;
|
||||
begin(s);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user