[Boost-bugs] [Boost C++ Libraries] #2840: [type traits] is_pod<T>::value != BOOST_IS_POD(T)

Subject: [Boost-bugs] [Boost C++ Libraries] #2840: [type traits] is_pod<T>::value != BOOST_IS_POD(T)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-09 14:39:35


#2840: [type traits] is_pod<T>::value != BOOST_IS_POD(T)
----------------------------------+-----------------------------------------
 Reporter: johan.torp_at_[hidden] | Owner:
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.38.0 | Severity: Not Applicable
 Keywords: |
----------------------------------+-----------------------------------------
 According to boost/type_traits/intrinsics.hpp:
 // BOOST_IS_POD(T) should evaluate to true if T is a POD type

 This is not true for MSVC.


 Excerpted from the __is_pod documentation at
 http://msdn.microsoft.com/en-us/library/ms177194.aspx:

 "Returns true if the type is a class or union with no constructor or
 private or protected non-static members, no base classes, and no virtual
 functions. See the C++ standard, sections 8.5.1/1, 9/4, and 3.9/10 for
 more information on PODs.

 __is_pod will return false on fundamental types."


 Note that is_pod works fine.


 Best Regards, Johan Torp
 www.johantorp.com

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