Boost C++ Libraries: Ticket #2840: [type traits] is_pod<T>::value != BOOST_IS_POD(T) https://svn.boost.org/trac10/ticket/2840 <p> According to boost/type_traits/intrinsics.hpp: <em> BOOST_IS_POD(T) should evaluate to true if T is a POD type </em></p> <p> This is not true for MSVC. </p> <p> Excerpted from the <span class="underline">is_pod documentation at <a class="ext-link" href="http://msdn.microsoft.com/en-us/library/ms177194.aspx"><span class="icon">​</span>http://msdn.microsoft.com/en-us/library/ms177194.aspx</a>: </span></p> <p> "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. </p> <p> <span class="underline">is_pod will return false on fundamental types." </span></p> <p> Note that is_pod works fine. </p> <p> Best Regards, Johan Torp www.johantorp.com </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2840 Trac 1.4.3 Steven Watanabe Mon, 09 Mar 2009 15:05:26 GMT component changed; owner set https://svn.boost.org/trac10/ticket/2840#comment:1 https://svn.boost.org/trac10/ticket/2840#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">type_traits</span> </li> </ul> Ticket John Maddock Mon, 09 Mar 2009 15:18:50 GMT <link>https://svn.boost.org/trac10/ticket/2840#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2840#comment:2</guid> <description> <p> Forgive me, but where's the bug? </p> <p> BOOST_IS_POD is an internal helper macro, so as long as boost::is_pod does the correct thing, what's the problem? </p> <p> Regards, John Maddock. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Mon, 20 Apr 2009 11:50:00 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2840#comment:3 https://svn.boost.org/trac10/ticket/2840#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket