SHA256
8
0
forked from pool/boost

Accepting request 1241630 from home:aschnell:boost2

- added boost-smart-ptr.patch from upstream (bsc#1234430)

OBS-URL: https://build.opensuse.org/request/show/1241630
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=335
This commit is contained in:
2025-01-31 13:20:26 +00:00
committed by Git OBS Bridge
parent 9e3a520b48
commit 3eed046848
3 changed files with 35 additions and 0 deletions

28
boost-smart-ptr.patch Normal file
View File

@@ -0,0 +1,28 @@
See https://github.com/boostorg/smart_ptr/commit/e7433ba54596da97cb7859455cd37ca140305a9c.
diff --git a/include/boost/smart_ptr/intrusive_ptr.hpp b/include/boost/smart_ptr/intrusive_ptr.hpp
index ddb20c0b0e..11b476513a 100644
--- 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;
diff --git a/include/boost/smart_ptr/shared_ptr.hpp b/include/boost/smart_ptr/shared_ptr.hpp
index 2431a33590..2deed9b632 100644
--- 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;

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 31 11:05:20 CET 2025 - aschnell@suse.com
- added boost-smart-ptr.patch from upstream (bsc#1234430)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jan 07 10:32:50 CET 2025 - aschnell@suse.com Tue Jan 07 10:32:50 CET 2025 - aschnell@suse.com

View File

@@ -236,6 +236,7 @@ Patch17: python_mpi.patch
Patch18: dynamic_linking.patch Patch18: dynamic_linking.patch
Patch20: python_library_name.patch Patch20: python_library_name.patch
Patch21: boost-remove-cmakedir.patch Patch21: boost-remove-cmakedir.patch
Patch22: boost-smart-ptr.patch
%{?suse_build_hwcaps_libs} %{?suse_build_hwcaps_libs}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@@ -1287,6 +1288,7 @@ find -type f ! \( -name \*.sh -o -name \*.py -o -name \*.pl \) -exec chmod -x {}
%patch -P 18 -p1 %patch -P 18 -p1
%patch -P 20 -p1 %patch -P 20 -p1
%patch -P 21 -p1 %patch -P 21 -p1
%patch -P 22 -p1
%build %build
find . -type f -exec chmod u+w {} + find . -type f -exec chmod u+w {} +