lowest_layer() is deprecated in boost::beast, replaced by boost::beast::get_lowest_layer(), but still in use by boost::asio:ssl::stream

"Klebsch, Mario via Boost-users" <[email protected]> Mon, 14 Jul 2025 13:29:55 +0000
Newsgroups gmane.comp.lib.boost.user
Message-ID <[email protected]>
Hi,

The boost libraries beast and asio seem to disagree on whether a socket/str=
eam should offer the lowest_layer() method or not. Boost::beast::tcp_stream=
 has only private versions of this method and the associated typedef lowest=
_layer_type, while e.g. boost::asio::ssl::stream still requires this method=
. The replacement get_lowest_layer() is only offered in beast.

For  boost::asio::ssl::stream this is handled by boost::beast::tcp_stream d=
eclaring boost::asio::ssl::stream as friend, so offering access to lowest_l=
ayer().

But I have my own ssl stream, based on a different SSL library than openssl=
, and this stream class is also (because it is based on boost::asio::ssl::s=
tream) dependant on lowest_layer().

I think, boost::beast and boost::asio should agree on whether to deprecate =
lowest_layer() and offer get_lowest_layer(), or not.


Klebsch Mario
Funktion | R&D



Tel: +49 (0) 531 38 701 718
Raum: Braunschweig, E20



Diese E-Mail und die an sie angeh=E4ngten Dateien sind ausschlie=DFlich f=
=FCr Personen oder Institutionen bestimmt, deren Namen oben aufgef=FChrt si=
nd. Sie k=F6nnen Informationen enthalten, die durch das Berufsgeheimnis ges=
ch=FCtzt sind und deren Weitergabe strengstens untersagt ist. Jede elektron=
ische Nachricht kann ge=E4ndert werden. ACTIA lehnt jede Verantwortung f=FC=
r diese Nachricht ab. Der Inhalt dieser Nachricht stellt keine Verpflichtun=
g seitens unseres Unternehmens dar. Wenn Sie kein Empf=E4nger sind, weisen =
wir Sie darauf hin, dass das Lesen, Vervielf=E4ltigen oder Verteilen streng=
stens untersagt ist. Wir bitten Sie daher, uns umgehend =FCber diesen Brief=
 zu informieren und diese Nachricht sowie eventuell beigef=FCgte Unterlagen=
 aus Ihrem Postfach zu l=F6schen. Danke.

This e-mail and the files attached to it are intended exclusively for perso=
ns or institutions whose names are listed above. They may contain informati=
on that is protected by professional secrecy and the disclosure of which is=
 strictly prohibited. Any electronic message can be modified. ACTIA decline=
s all responsibility for this message. The content of this message does not=
 represent a commitment on the part of our company. If you are not a recipi=
ent, we would like to point out that reading, copying or distribution is st=
rictly prohibited. We therefore ask you to inform us immediately about this=
 letter and to delete this message and any accompanying documents from your=
 mailbox. Thank you.



_______________________________________________
Boost-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost-users.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected].=
org/message/E2IWQ4DITGHJQZU2WEMXLI4LIX5MQT6R/=20