Project

General

Profile

Actions

Bug #2056

closed

Dbo ptr isLoaded forcing int to bool

Added by Saif Rehman over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
07/24/2013
Due date:
% Done:

100%

Estimated time:

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; }
Actions #1

Updated by Wim Dumon over 10 years ago

  • Status changed from New to Resolved

Thank you, will be in next release

Actions #2

Updated by Koen Deforche over 10 years ago

  • Assignee set to Wim Dumon
  • Target version set to 3.3.1
Actions #3

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF