Opened 10 years ago
Closed 10 years ago
#8349 closed Bugs (wontfix)
using I as the name of a template parameter leads to compile errors
Reported by: | Owned by: | ||
---|---|---|---|
Milestone: | To Be Determined | Component: | None |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | Cc: |
Description
complex.h on my system #defines I to be the imaginary unit and leads to compile errors when some boost headers are included after it.
I've attached a patch renaming I to I in the headers which caused a problem for me.
Attachments (1)
Change History (5)
by , 10 years ago
Attachment: | I_to___I.patch added |
---|
comment:1 by , 10 years ago
comment:3 by , 10 years ago
Replying to steven_watanabe:
#undef INo one has any business defining I as a macro.
I agree that it's a pain that I is defined as a macro, but glibc does it and the solution to the compile errors (i.e., reordering the headers) was non-obvious.
comment:4 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
complex.h is hopelessly broken.
#include <complex.h> #include <complex>
Note:
See TracTickets
for help on using tickets.
__I is a reserved identifier.