diff --git a/include/soci/rowset.h b/include/soci/rowset.h index cfe5ca2b4..afd5cf3f9 100644 --- a/include/soci/rowset.h +++ b/include/soci/rowset.h @@ -182,6 +182,12 @@ class rowset pimpl_->incRef(); } + // Due to the existence of conversion from session to prepare_temp_type, it + // would have been possible to construct a rowset from session if we didn't + // delete this ctor -- so do delete it because it doesn't make sense to + // provide such constructor. + rowset(session const& session) = delete; + ~rowset() { pimpl_->decRef();