'How can I quick fix an error from an C++ lib
I'm a newbie on C++, and now I'm debugging an C# application that call an C++ library, then I got an error from C++ lib, I'm confused and don't know how to resolve the error, can anyone help to explain the C++ code by java or c# style? I had found the code:
bool ValidateClientClass(long clientClass)
{
if (clientClass > -1 && clientClass <= std::numeric_limits<FC::DataRecordBase::DataSource_t>::max())
return true;
return false;
}
the input a client class '1', the I got false. I can't understand std::numeric_limits<FC::DataRecordBase::DataSource_t>::max(), how does this mean in C++?
I expect a method to return true from previous code.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
