Opened 8 years ago

Closed 8 years ago

Last modified 6 years ago

#10948 closed Bugs (fixed)

use of 'I' in template in shared_ptr conflicts with complex.h

Reported by: j.wuttke@… 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:2 by Peter Dimov, 8 years ago

Resolution: fixed
Status: newclosed

comment:3 by lebihan.bastien@…, 6 years ago

Same error in boost/lambda/lambda.hpp

Note: See TracTickets for help on using tickets.