#10948 closed Bugs (fixed)
use of 'I' in template in shared_ptr conflicts with complex.h
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | smart_ptr |
Version: | Boost 1.57.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Under g++,
#include <complex.h> #include <boost/shared_ptr.hpp>
yields weird error messages, whereas the inverse inclusion order works fine. The problem comes from the use of letter 'I', aka imaginary unit, as a template parameter in boost/smart_ptr/detail/spinlock_pool.hpp.
Change History (3)
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Thanks, should be fixed in
https://github.com/boostorg/smart_ptr/commit/7faec4265bff23acae3f2599fa29b4608916d8aa