diff --git a/fixed.cpp b/fixed.cpp index f3f049e7..6f4d0fb3 100644 --- a/fixed.cpp +++ b/fixed.cpp @@ -81,7 +81,9 @@ template fixed fixed::from_native (uint_t i) { - return fixed {i}; + fixed v; + v.m_value = i; + return v; } diff --git a/fixed.hpp b/fixed.hpp index c7f9d36c..80f4e1d8 100644 --- a/fixed.hpp +++ b/fixed.hpp @@ -64,6 +64,8 @@ namespace util { fixed operator /(uint_t) const; private: + fixed () = default; + uint_t m_value; };