Advertisement
Ember

vectirs

Jun 20th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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); }; // Template specializations don't inherit from base template definition
  6. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement