Actions
Bug #2056
closedDbo ptr isLoaded forcing int to bool
Description
Visual Studio 2012's compiler gives this performance related warning.
warning C4800: ' *const ' : forcing value to bool 'true' or 'false' (performance warning)
C:\Users\hp\WtCommunityCMS\src\Wt/Dbo/ptr(335) : while compiling class template member function 'bool Wt::Dbo::MetaDbo::isLoaded(void) const'
It's nothing serious, just annoying. You can use this line instead.
bool isLoaded() const { return obj_ != 0; }
Updated by Wim Dumon over 11 years ago
- Status changed from New to Resolved
Thank you, will be in next release
Updated by Koen Deforche over 11 years ago
- Assignee set to Wim Dumon
- Target version set to 3.3.1
Updated by Koen Deforche over 11 years ago
- Status changed from Resolved to Closed
Actions