[Boost-bugs] [Boost C++ Libraries] #10948: use of 'I' in template in shared_ptr conflicts with complex.h

Subject: [Boost-bugs] [Boost C++ Libraries] #10948: use of 'I' in template in shared_ptr conflicts with complex.h
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-21 14:41:39


#10948: use of 'I' in template in shared_ptr conflicts with complex.h
------------------------------+-----------------------
 Reporter: j.wuttke@… | Owner: pdimov
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------
 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10948>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC