[Xapian-devel] str.h warning in MSVC 9.0

Olly Betts olly at survex.com
Tue May 5 16:43:05 BST 2009


On Tue, May 05, 2009 at 04:19:59PM +0100, Eric Sellin wrote:
> 
> inline std::string str(bool value) {
>   return value? "1": "0";
> }
> 
> ...and be done with it :)

The code generated by that variant was less good in my tests when I
implemented these functions, and I'm not going to choose worse code just
to placate a bogus warning which is of marginal value even when working
correctly.  We can just turn it off globally and really be done with it.

Cheers,
    Olly



More information about the Xapian-devel mailing list