bool ok() const { return _conn > 0; }
The option -Wextra also prints warning messages for the following cases:
A pointer is compared against integer zero with <, <=, >, or >=.
bool ok() const { return _conn != 0; }
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at http://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/2f8b7d2e-d4ec-4d8a-b6c9-9adec1bc7cb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/46e6528e-9ef2-466d-8d80-a982c00d22b5%40googlegroups.com.