From 602d2557ae474636babb75cc89956452a002bd9d Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 24 Jul 2024 16:12:44 +0200 Subject: Changing operations to return InterfaceSchema types for mixed precision --- modules/codec/c++/data.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp index 734a56e..d8208d0 100644 --- a/modules/codec/c++/data.hpp +++ b/modules/codec/c++/data.hpp @@ -205,14 +205,14 @@ public: return {left * right}; } - data operator/(const data& rhs)const{ + data operator/(const data& rhs)const{ using CalcType = typename native_data_type::type; CalcType left = static_cast(value_.get()); CalcType right = static_cast(rhs.get()); return {left / right}; } - data operator+(const data& rhs)const{ + data operator+(const data& rhs)const{ using CalcType = typename native_data_type::type; CalcType left = static_cast(value_.get()); CalcType right = static_cast(rhs.get()); @@ -224,7 +224,7 @@ public: return *this; } - data operator-(const data& rhs)const{ + data operator-(const data& rhs)const{ using CalcType = typename native_data_type::type; CalcType left = static_cast(value_.get()); CalcType right = static_cast(rhs.get()); -- cgit v1.2.3