Skip to content

Commit

Permalink
Add a comment explaining the use of boost::shared_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed Jul 2, 2014
1 parent 7ab054f commit c43bf75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/forum_user_handler.hpp
Expand Up @@ -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
Expand Down

0 comments on commit c43bf75

Please sign in to comment.