- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
#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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page