mirror of
https://github.com/SOCI/soci.git
synced 2026-01-20 03:59:35 -06:00
When working directly with concrete statement_backend classes, their alloc() and clean_up() methods must be called directly, which suffers from all the usual problems, especially in presence of exceptions. Avoid them by using the new auto_statement class which takes care of calling these methods in its ctor/dtor instead. An alternative could be to make the concrete classes themselves use RAII, but this would be more error prone (e.g. there would be a risk of alloc() being called twice) and require many more changes, so, at least for now, use this more lightweight solution. No real changes.
soci/include/private
Private headers do not define any parts of public interface, are not installed in user's filesystem. Private headers only define common features used internally.