We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c7d446 commit c207063Copy full SHA for c207063
include/pybind11/detail/common.h
@@ -244,9 +244,6 @@
244
# include <version>
245
# endif
246
#endif
247
-#ifdef PYBIND11_HAS_STRING_VIEW
248
-# include <string_view>
249
-#endif
250
251
// #define PYBIND11_STR_LEGACY_PERMISSIVE
252
// If DEFINED, pybind11::str can hold PyUnicodeObject or PyBytesObject
include/pybind11/pytypes.h
@@ -18,6 +18,10 @@
18
# include <optional>
19
20
21
+#ifdef PYBIND11_HAS_STRING_VIEW
22
+# include <string_view>
23
+#endif
24
+
25
PYBIND11_NAMESPACE_BEGIN(PYBIND11_NAMESPACE)
26
27
/* A few forward declarations */
0 commit comments