[Xapian-tickets] [Xapian] #377: MSVC 9.0 warning in xapian-core/common/str.h

Xapian nobody at xapian.org
Mon May 25 12:17:50 BST 2009


#377: MSVC 9.0 warning in xapian-core/common/str.h
-------------------------------+--------------------------------------------
 Reporter:  kelm               |        Owner:  olly     
     Type:  defect             |       Status:  reopened 
 Priority:  normal             |    Milestone:  1.1.1    
Component:  Other              |      Version:  SVN trunk
 Severity:  normal             |   Resolution:           
 Keywords:                     |    Blockedby:           
 Platform:  Microsoft Windows  |     Blocking:           
-------------------------------+--------------------------------------------
Changes (by kelm):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 The template functions in line 41 (tostring_unsigned) and 59 (tostring) of
 "common/str.cc" exhibit a similar issue. In this case, however the
 compiler generates a warning only as there is the "specialization" for
 bool as above.

 Same resolution proposed as above, i.e. adding a static_cast on the
 "value" parameter.

-- 
Ticket URL: <http://trac.xapian.org/ticket/377#comment:2>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list