From a48287e047797c5cf170aeaeede13c464c67bcdc Mon Sep 17 00:00:00 2001 From: Ruben Perez Date: Thu, 19 May 2022 00:26:48 +0200 Subject: [PATCH] Added connection::next_layer_type --- include/boost/mysql/connection.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/mysql/connection.hpp b/include/boost/mysql/connection.hpp index 9423fcbc..d8e2480e 100644 --- a/include/boost/mysql/connection.hpp +++ b/include/boost/mysql/connection.hpp @@ -124,6 +124,9 @@ public: /// Retrieves the executor associated to this object. executor_type get_executor() { return get_channel().get_executor(); } + /// The `Stream` type this connection is using. + using next_layer_type = Stream; + /// Retrieves the underlying Stream object. Stream& next_layer() { return get_channel().next_layer(); }