
6 Sep
2025
6 Sep
'25
5:25 p.m.
On Sat, Sep 6, 2025 at 8:36 PM Claudio DeSouza via Boost <boost@lists.boost.org> wrote:
How is a connection_ref different from a reference or a pointer to connection? I can’t help but to feel this is quite unusual, and that it will impose a certain cognitive cost to understand code that otherwise could be simpler for little return.
A connection& or connection* allows moving a connection because it has a mutable reference. Furthermore a connection_ref can point to a sqlite3* without the need for a connection object at all.