From f7ee92f89663948722c412ffbfb83e8a61ceb8ce Mon Sep 17 00:00:00 2001 From: "Sergei L. Khandrikov" Date: Tue, 3 Nov 2020 12:04:08 +0300 Subject: [PATCH] Decay OidMap type for connection_info's connection To do not confuse user with error on this snippet const auto oid_map = ozo::register_types<>(); ozo::connection_info conn_info(...) Here the connection_info uses connection with const od oid map type, that deletes move constructor of the underlying connection_rep type. --- include/ozo/connection_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ozo/connection_info.h b/include/ozo/connection_info.h index 6bf390c2c..c42d925d4 100644 --- a/include/ozo/connection_info.h +++ b/include/ozo/connection_info.h @@ -30,7 +30,7 @@ class connection_info { Statistics statistics; public: - using connection_type = std::shared_ptr>; //!< Type of connection which is produced by the source. + using connection_type = std::shared_ptr, Statistics>>; //!< Type of connection which is produced by the source. /** * @brief Construct a new connection information object