Add a comment explaining the use of boost::shared_ptr

This commit is contained in:
Alexander van Gessel 2014-06-28 17:20:37 +02:00
parent 7ab054fc85
commit c43bf75eca

View file

@ -94,6 +94,9 @@ class fuh : public user_handler {
std::string db_name_, db_host_, db_user_, db_password_, db_users_table_, db_extra_table_;
// std::unique_ptr would be better, as the object isn't actually shared
// boost::scoped_ptr cannot be returned, so we can't use that
// TODO C++11: switch to std::unique_ptr
typedef boost::shared_ptr<MYSQL_RES> mysql_result;
// Throws user_handler::error