File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
target_data/Cpp/cppDesktop/include Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ namespace sakurajin{
169
169
template <std::floating_point base_type>
170
170
std::ostream& operator<<(std::ostream& os, const {{ unit.name }}_t<base_type>& val) {
171
171
auto val_raw = val.convert_copy(1.0, 0.0);
172
- return os << val_raw.val() << " {{ base_name }}";
172
+ return os << val_raw.val() << " {{ unit. base_name }}";
173
173
}
174
174
175
175
{% endfor %}
@@ -191,7 +191,7 @@ namespace sakurajin{
191
191
[[nodiscard]]auto operator*(const {{ unit.name }}_t<base_type>& val, const {{ mult.factor }}_t<base_type>& other){
192
192
auto _v1 = val.convert_offset(0);
193
193
auto _v2 = other.convert_offset(0);
194
- return sakurajin::unit_system::{{ mult.product }}_t<base_type>{_v1.val()*_v2.val(),_v1.mult()/ _v2.mult()};
194
+ return sakurajin::unit_system::{{ mult.product }}_t<base_type>{_v1.val()*_v2.val(),_v1.mult()* _v2.mult()};
195
195
}
196
196
{% endfor %}{% endif %}
197
197
You can’t perform that action at this time.
0 commit comments