Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7679 Discussions

std::is_pod<size_t>::value is false under intel c++14.0 with vs2013

tom_k_
Beginner
179 Views

 

#include <cstdlib>
#include <type_traits>

int _tmain(int argc, _TCHAR* argv[])
{
    printf("%d", std::is_pod<size_t>::value);

    return 0;
}

Compiler with intel c++ 14.0, it output:

0

Compiler with vc++, it output:

1

I've already enabled c++11 support in intel c++, This maybe a bug.

 

0 Kudos
1 Solution
Judith_W_Intel
Employee
179 Views

 

It appears we were emulating a Microsoft bug that occurs in MSVC++ 2012 and earlier where the __is_pod type trait always returns false for non class types. This appears to be fixed in MSVC++ 2013 so I have entered a defect (DPD200250264) in our bug tracking database to fix this when emulating MSVC++ 2013. Thanks for bringing this to our attention.

Judy

View solution in original post

1 Reply
Judith_W_Intel
Employee
180 Views

 

It appears we were emulating a Microsoft bug that occurs in MSVC++ 2012 and earlier where the __is_pod type trait always returns false for non class types. This appears to be fixed in MSVC++ 2013 so I have entered a defect (DPD200250264) in our bug tracking database to fix this when emulating MSVC++ 2013. Thanks for bringing this to our attention.

Judy

Reply