You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (in_value < kOutMin || in_value > std::numeric_limits<OutT>::max()) {
In template bool ConvertValue(AttributeValueIndex att_id, int8_t out_num_components, OutT *out_val) const
there is a long switch that "calls"/instantiates ConvertTypedValue<bool, OutT> that in turn "calls"
ConvertComponentValue<bool, OutT> that causes the warning for ConvertComponentValue<bool, float> because language requirements.
The text was updated successfully, but these errors were encountered:
SergeyKorytnik
changed the title
Please replace if by if constexpr for C++ and above
Please replace if by if constexpr for C++ 17 and above
Nov 16, 2024
The following if statements should be if constexpr in C++17 and above:
draco/src/draco/attributes/geometry_attribute.h
Line 366 in b43b42c
draco/src/draco/attributes/geometry_attribute.h
Line 369 in b43b42c
draco/src/draco/attributes/geometry_attribute.h
Line 378 in b43b42c
draco/src/draco/attributes/geometry_attribute.h
Line 381 in b43b42c
draco/src/draco/attributes/geometry_attribute.h
Line 386 in b43b42c
and not as trivial but constexpr parts from the following if statements should be extracted in separate if constexpr statements:
draco/src/draco/attributes/geometry_attribute.h
Line 407 in b43b42c
draco/src/draco/attributes/geometry_attribute.h
Line 413 in b43b42c
This way compiler warnings like
can be avoided in line
draco/src/draco/attributes/geometry_attribute.h
Line 372 in b43b42c
In template bool ConvertValue(AttributeValueIndex att_id, int8_t out_num_components, OutT *out_val) const
there is a long switch that "calls"/instantiates ConvertTypedValue<bool, OutT> that in turn "calls"
ConvertComponentValue<bool, OutT> that causes the warning for ConvertComponentValue<bool, float> because language requirements.
The text was updated successfully, but these errors were encountered: