SHOW:
|
|
- or go back to the newest paste.
| 1 | - | template <typename type> struct Vector4<type> { float x, y, z, w; }
|
| 1 | + | template <typename type> struct Vector4 { type x, y, z, w; }
|
| 2 | ||
| 3 | template <> struct Vector4<Float> | |
| 4 | {
| |
| 5 | - | Vector4<Half> Compress() { return Vector4<Half>(x, y, z, w); };
|
| 5 | + | Vector4<Half> Compress() { return Vector4<Half>(x, y, z, w); }; // Template specializations don't inherit from base template definition
|
| 6 | }; |