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
I am currently integrating the Draco library into our system and am facing a compilation error related to the StatusOr class. This issue arises when I include the "draco/io/ply_reader.h" in one of the header files.
Error Description:
The compilation error seems to be a type conversion issue involving the Status class. Here are the error messages:
usr/local/include/draco/core/status_or.h:38:30: error: no viable conversion from 'draco::Status' to 'int'
StatusOr(const T &value) : status_(OkStatus()), value_(value) {}
^ ~~~~~~~~~~
/usr/local/include/draco/core/status_or.h:39:25: error: no viable conversion from 'draco::Status' to 'int'
StatusOr(T &&value) : status_(OkStatus()), value_(std::move(value)) {}
^ ~~~~~~~~~~
/usr/local/include/draco/core/status_or.h:53:35: error: member reference base type 'const int' is not a structure or union
bool ok() const { return status_.ok(); }
Environment:
OS: Ubuntu 20.04
Compiler: Clang 10
Draco Version: Latest version from [specific branch or commit hash if applicable]
Current Workaround:
I have temporarily bypassed the problem by hardcoding certain values, but I am seeking a more robust and permanent solution.
Could you please provide some guidance on how to resolve this issue?
Thanks for your help!
The text was updated successfully, but these errors were encountered:
Hi,
I am currently integrating the Draco library into our system and am facing a compilation error related to the
StatusOr
class. This issue arises when I include the "draco/io/ply_reader.h" in one of the header files.Error Description:
The compilation error seems to be a type conversion issue involving the
Status
class. Here are the error messages:Environment:
Current Workaround:
I have temporarily bypassed the problem by hardcoding certain values, but I am seeking a more robust and permanent solution.
Could you please provide some guidance on how to resolve this issue?
Thanks for your help!
The text was updated successfully, but these errors were encountered: