1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-02 14:04:22 +00:00

Clarify PGresult ownership and lifetime.

This commit is contained in:
King_DuckZ 2015-12-30 10:15:36 +00:00
parent ff926d85a4
commit 43bec4711e
4 changed files with 51 additions and 49 deletions

View file

@ -33,7 +33,7 @@ namespace pq {
public:
typedef boost::transform_iterator<boost::function<std::string(std::size_t)>, boost::counting_iterator<std::size_t>> const_iterator;
Row ( const ResultInfo& parResult, std::size_t parRow );
Row ( const ResultInfo* parResult, std::size_t parRow );
Row ( const Row& ) = delete;
Row ( Row&& parOther );
~Row ( void ) noexcept;
@ -60,7 +60,7 @@ namespace pq {
public:
typedef boost::transform_iterator<boost::function<Row(std::size_t)>, boost::counting_iterator<std::size_t>> const_iterator;
explicit ResultSet ( ResultInfo& parResult );
explicit ResultSet ( ResultInfo&& parResult );
ResultSet ( const ResultSet& ) = delete;
ResultSet ( ResultSet&& parOther );
~ResultSet ( void ) noexcept;