Changeset 10976 for code/branches/cpp11_v2/src/libraries/util/Math.h
- Timestamp:
- Dec 25, 2015, 9:07:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/util/Math.h
r10818 r10976 181 181 inline T zeroise() 182 182 { 183 // Default, raise a compiler error without including large boost header cascade. 184 T temp{}; 185 *********temp; // If you reach this code, you abused zeroise()! 183 static_assert(sizeof(T) != sizeof(T), "No template specialization available for T"); 186 184 return temp; 187 185 }
Note: See TracChangeset
for help on using the changeset viewer.