Commit d1f4d3ea authored by Wenzel Jakob's avatar Wenzel Jakob
Browse files

Merge pull request #78 from ax3l/fix-complexGlibc

Fix #75 <complex> may define macro I
parents 80a06745 30214adc
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment