Fix is_blittable partial specializations (dotnet/coreclr#6357)
authorjoemmett <joemmett@microsoft.com>
Wed, 20 Jul 2016 23:31:04 +0000 (16:31 -0700)
committerJan Kotas <jkotas@microsoft.com>
Wed, 20 Jul 2016 23:31:04 +0000 (16:31 -0700)
commitf724a4621c59b555aec7dad551d3892af64616d6
tree4019109adc5f47bcdee3728067f8835060d92629
parent9734495d4446016b2b0a6e62b5fe2ebb0e75aa05
Fix is_blittable partial specializations (dotnet/coreclr#6357)

The is_blittable partial specializations were defined using "class", privately
inheriting from std::true_type. This means the ::value member variable will
be inaccessible to most users of these types. Thus the type
``std::enable_if<is_blittable<T>::value>::type'' will always result in a
substitution failure with a compiler that respects accessibility in SFINAE.

This commit changes "class" to "struct" for these partial specializations
so they inherit publicly from std::true_type.

Commit migrated from https://github.com/dotnet/coreclr/commit/8cdcdf1e8e2ed789c8a689553a384bb6fd1d7bcd
src/coreclr/src/debug/daccess/daccess.cpp