more on endian types

This commit is contained in:
Ced2911 authored and Unknown W. Brackets committed 2013-07-28 21:03:44 -07:00
1 parent 47e1c8143a
commit f5dc650fd3
1 file changed
+9 -2
+9 -2
View File
@@ -134,8 +134,15 @@ public:
return *this;
}
template <typename S>
operator S() const { return (S)swap(); }
operator long() const { return (long)swap(); }
operator s16() const { return (s16)swap(); }
operator u16() const { return (u16)swap(); }
operator s32() const { return (s32)swap(); }
operator u32() const { return (u32)swap(); }
operator s64() const { return (s64)swap(); }
operator u64() const { return (u64)swap(); }
operator float() const { return (float)swap(); }
operator double() const { return (double)swap(); }
// v / 5