[Boost-bugs] [Boost C++ Libraries] #11840: New is_complex<T> failing with const types

Subject: [Boost-bugs] [Boost C++ Libraries] #11840: New is_complex<T> failing with const types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-11 10:14:25


#11840: New is_complex<T> failing with const types
------------------------------+-------------------------
 Reporter: dolfim@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: type_traits
  Version: Boost 1.60.0 | Severity: Regression
 Keywords: |
------------------------------+-------------------------
 I would like to report a change in behavior for the new version of the
 type_traits in Boost 1.60.0 (b1).

 When the type is ```const std::complex<T>```, the traits return false.
 This is different between 1.58.0 and the current 1.60.0b1

 Example:
 {{{
 #!c++
 template <typename T>
 void mycheck() {
     if (boost::is_complex<T>())
         std::cout << "COMPLEX" << std::endl;
     else
         std::cout << "REAL" << std::endl;
 }

 int main () {
     mycheck<float>(); // REAL
     mycheck<double>(); // REAL
     mycheck<int>(); // REAL
     mycheck<std::complex<float> >(); // COMPLEX
     mycheck<std::complex<double> >(); // COMPLEX
     mycheck<std::complex<const double> >(); // COMPLEX
     mycheck<const std::complex<double> >(); // COMPLEX in 1.58.0, REAL in
 1.60.0_b1
 }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11840>
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:19 UTC