Skip to content

Commit

Permalink
Disallowing constructing rowset from a session
Browse files Browse the repository at this point in the history
  • Loading branch information
cstiborg committed Oct 9, 2023
1 parent c4ff390 commit 6f40cf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/soci/rowset.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ class rowset
pimpl_->incRef();
}

rowset(session const & session) = delete;

~rowset()
{
pimpl_->decRef();
Expand Down

0 comments on commit 6f40cf6

Please sign in to comment.