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
{{ message }}
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
/usr/include/c++/13.2.1/bits/stl_function.h:408:20: error: no match for ‘operator<’ (operand types are ‘const tinyobj::index_t’ and ‘const tinyobj::index_t’)
408 | { return __x < __y; }
Solution: namespace std >>> namespace tinyobj
New, Correct Code:
namespace tinyobj {
inline bool operator<(const tinyobj::index_t &a, const tinyobj::index_t &b) {
if (a.vertex_index < b.vertex_index)
return true;
if (a.vertex_index > b.vertex_index)
return false;
if (a.normal_index < b.normal_index)
return true;
if (a.normal_index > b.normal_index)
return false;
if (a.texcoord_index < b.texcoord_index)
return true;
if (a.texcoord_index > b.texcoord_index)
return false;
return false;
}
} // namespace tinyobj
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Solution:
namespace std >>> namespace tinyobj
New, Correct Code:
The text was updated successfully, but these errors were encountered: