0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2025-03-15 10:28:55 +00:00
glibc-packages/gpkg/boost/fix-smart-pointer-output.patch
Max Ivan 16a5e68538 global packages update (#330)
apache2
bash-completion
boost
box64
box86
doxygen
e2fsprogs
gettext
libaom
libcurl
libdrm
libedit
libelf
libflac
libgnutls
libice
libicu
liblzma
libnettle
libnghttp2
libpam
libpixman
libpng
libsecret
libsm
libsqlite
libtool
libtpms
libuv
libwayland-protocols
libx11
libxau
libxkbcommon
libxml2
libxrender
libxshmfence
libxt
libxxf86vm
openssl
pcre2
python
zstd
python-pip
docbook-xsl-glibc
binutils-libs
2025-03-10 10:15:48 +03:00

27 lines
1.1 KiB
Diff

From e7433ba54596da97cb7859455cd37ca140305a9c Mon Sep 17 00:00:00 2001
From: Peter Dimov <pdimov@gmail.com>
Date: Mon, 13 Jan 2025 16:13:04 +0200
Subject: [PATCH] Fix operator<< for shared_ptr and intrusive_ptr. Fixes #115.
--- a/boost/smart_ptr/intrusive_ptr.hpp
+++ b/boost/smart_ptr/intrusive_ptr.hpp
@@ -285,7 +285,7 @@ template<class T, class U> intrusive_ptr<T> dynamic_pointer_cast( intrusive_ptr<
// operator<<
-template<class Y> std::ostream & operator<< (std::ostream & os, intrusive_ptr<Y> const & p)
+template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, intrusive_ptr<Y> const & p)
{
os << p.get();
return os;
--- a/boost/smart_ptr/shared_ptr.hpp
+++ b/boost/smart_ptr/shared_ptr.hpp
@@ -775,7 +775,7 @@ template<class T> inline typename shared_ptr<T>::element_type * get_pointer(shar
// operator<<
-template<class Y> std::ostream & operator<< (std::ostream & os, shared_ptr<Y> const & p)
+template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, shared_ptr<Y> const & p)
{
os << p.get();
return os;