diff options
author | joemmett <joemmett@microsoft.com> | 2016-07-20 16:31:04 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-07-20 16:31:04 -0700 |
commit | 8cdcdf1e8e2ed789c8a689553a384bb6fd1d7bcd (patch) | |
tree | 5a5a1c2fa347db9130a616f3f35574099fe4a62e /src/debug | |
parent | 34e1626bc3a49b50900ca192bed1f97524d81e6a (diff) | |
download | coreclr-8cdcdf1e8e2ed789c8a689553a384bb6fd1d7bcd.tar.gz coreclr-8cdcdf1e8e2ed789c8a689553a384bb6fd1d7bcd.tar.bz2 coreclr-8cdcdf1e8e2ed789c8a689553a384bb6fd1d7bcd.zip |
Fix is_blittable partial specializations (#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.
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/daccess/daccess.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/daccess/daccess.cpp b/src/debug/daccess/daccess.cpp index 4f500d9e6a..20395f0018 100644 --- a/src/debug/daccess/daccess.cpp +++ b/src/debug/daccess/daccess.cpp @@ -2339,7 +2339,7 @@ namespace serialization { namespace bin { }; template <typename _Ty> - class is_blittable<_Ty, typename std::enable_if<std::is_arithmetic<_Ty>::value>::type> + struct is_blittable<_Ty, typename std::enable_if<std::is_arithmetic<_Ty>::value>::type> : std::true_type { // determines whether _Ty is blittable }; @@ -2347,7 +2347,7 @@ namespace serialization { namespace bin { // allow types to declare themselves blittable by including a static bool // member "is_blittable". template <typename _Ty> - class is_blittable<_Ty, typename std::enable_if<_Ty::is_blittable>::type> + struct is_blittable<_Ty, typename std::enable_if<_Ty::is_blittable>::type> : std::true_type { // determines whether _Ty is blittable }; |