Explicitly implement default constructors

This commit is contained in:
baldurk 2016-10-13 19:30:27 +02:00
parent 1a65fc269c
commit a227d27227

View File

@ -43,7 +43,7 @@ namespace spvutils {
class Float16 { class Float16 {
public: public:
Float16(uint16_t v) : val(v) {} Float16(uint16_t v) : val(v) {}
Float16() = default; Float16() {}
static bool isNan(const Float16& val) { static bool isNan(const Float16& val) {
return ((val.val & 0x7C00) == 0x7C00) && ((val.val & 0x3FF) != 0); return ((val.val & 0x7C00) == 0x7C00) && ((val.val & 0x3FF) != 0);
} }
@ -118,7 +118,7 @@ class FloatProxy {
// Since this is to act similar to the normal floats, // Since this is to act similar to the normal floats,
// do not initialize the data by default. // do not initialize the data by default.
FloatProxy() = default; FloatProxy() {}
// Intentionally non-explicit. This is a proxy type so // Intentionally non-explicit. This is a proxy type so
// implicit conversions allow us to use it more transparently. // implicit conversions allow us to use it more transparently.