commit | fa92f6796fdc110e4831afe8d597f0ae1cd399e7 | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Thu Jan 21 19:03:51 2016 +0100 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Thu Jan 21 19:03:51 2016 +0100 |
tree | ea8bdd7e7ace0e191d9209699d063eebf8f05de0 | |
parent | d1f4d3ea91d192099945beaa62e04175229cc72a [diff] | |
parent | 2dd5e3bc2a2ce305553e3bcdaf82c8f87cb1ad93 [diff] |
Merge pull request #76 from ax3l/fix-unusedVar Close #69 Unused Var: Warning
diff --git a/include/pybind11/complex.h b/include/pybind11/complex.h index 10da21d..a140f6f 100644 --- a/include/pybind11/complex.h +++ b/include/pybind11/complex.h
@@ -12,6 +12,11 @@ #include "pybind11.h" #include <complex> +/// glibc defines I as a macro which breaks things, e.g., boost template names +#ifdef I +# undef I +#endif + NAMESPACE_BEGIN(pybind11) PYBIND11_DECL_FMT(std::complex<float>, "Zf");