From 8e6eaec757cbb09577e0e65f084c0f2851264f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Mon, 15 Apr 2019 18:41:30 +0200 Subject: [PATCH] wrap with string to ensure windows support --- src/python_module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_module.h b/src/python_module.h index 50cea6d..45d7665 100644 --- a/src/python_module.h +++ b/src/python_module.h @@ -20,7 +20,7 @@ namespace pybind11 { public: PYBIND11_TYPE_CASTER(boost::filesystem::path, _("str")); bool load(handle src, bool) { - value = pybind11::str(src); + value = std::string(pybind11::str(src)); return !PyErr_Occurred(); }