Skip to content

Commit df5e111

Browse files
committed
Include <system_error> only on Windows to avoid Clang warning
`std::error_code` is only used in Windows-specific APIs so Clang complains about an unused include on other platforms.
1 parent 75fa721 commit df5e111

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

conversion/stringconversion.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@
1515
#include <sstream>
1616
#include <string>
1717
#include <string_view>
18-
#include <system_error>
1918
#include <vector>
2019

20+
#ifdef PLATFORM_WINDOWS
21+
#include <system_error>
22+
#endif
23+
2124
// configure use of ranges and concepts
2225
#if __cplusplus >= 201709
2326
#include <version>

0 commit comments

Comments
 (0)