Commit a227d272 by baldurk

Explicitly implement default constructors

parent 1a65fc26
......@@ -43,7 +43,7 @@ namespace spvutils {
class Float16 {
public:
Float16(uint16_t v) : val(v) {}
Float16() = default;
Float16() {}
static bool isNan(const Float16& val) {
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,
// do not initialize the data by default.
FloatProxy() = default;
FloatProxy() {}
// Intentionally non-explicit. This is a proxy type so
// implicit conversions allow us to use it more transparently.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment