Skip to content
Snippets Groups Projects
Commit a227d272 authored by baldurk's avatar baldurk
Browse files

Explicitly implement default constructors

parent 1a65fc26
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment