When using a connection pool, copying a connection_config would be suboptimal. Using a shared_ptr would be trivial to copy.