Skip to content

Commit bf79162

Browse files
committed
Merge 'origin/develop' into ft_fixes
2 parents 6557860 + 97402f7 commit bf79162

File tree

15 files changed

+36
-39
lines changed

15 files changed

+36
-39
lines changed

.github/workflows/test-ubuntu.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,27 @@ jobs:
1111
matrix:
1212
python: [python, python3]
1313
cxx: [g++, clang++]
14-
std: [c++98, c++11, c++14, c++17]
14+
std: [c++11, c++14, c++17]
1515
include:
1616
# Add the appropriate docker image for each compiler.
1717
# The images from teeks99/boost-python-test already have boost::python
1818
# pre-reqs installed, see:
1919
# https://github.com/teeks99/boost-python-test-docker
2020
- cxx: clang++
21-
docker-img: teeks99/boost-python-test:clang-12_1.76.0
21+
docker-img: teeks99/boost-python-test:clang-21_1.89.0
2222
- cxx: g++
23-
docker-img: teeks99/boost-python-test:gcc-10_1.76.0
23+
docker-img: teeks99/boost-python-test:gcc-15_1.89.0
2424

2525
container:
2626
image: ${{ matrix.docker-img }}
2727

2828
steps:
2929
- uses: actions/checkout@v5
3030

31+
- name: setup prerequisites
32+
run: |
33+
# Warning: this is not necessarily the same Python version as the one configured above !
34+
python3 -m pip install -U faber --break-system-packages
3135
- name: build
3236
run: |
3337
${{ matrix.python }} --version

doc/numpy/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<tr>
9191
<td valign="top" width="300">
9292
<h3><a href="{{ pathto('index') }}"><img
93-
alt="C++ Boost" src="{{ pathto('_static/' + logo, 1) }}" border="0"></a></h3>
93+
alt="C++ Boost" src="{{ pathto('_static/bpl.png', 1) }}" border="0"></a></h3>
9494
</td>
9595

9696
<td >

doc/tutorial.qbk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ platforms. The complete list of Bjam executables can be found
117117
[h2 Let's Jam!]
118118
__jam__
119119

120-
[@../../../../example/tutorial/Jamroot Here] is our minimalist Jamroot
120+
[@../example/Jamroot Here] is our minimalist Jamroot
121121
file. Simply copy the file and tweak [^use-project boost] to where your
122122
boost root directory is and you're OK.
123123

fabscript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ from faber.config.try_run import try_run
1616

1717
features += include('include')
1818
features += define('BOOST_ALL_NO_LIB') # disable auto-linking
19+
features += define('BOOST_NO_AUTO_PTR')
1920
boost_include = options.get_with('boost-include')
2021
if boost_include:
2122
features += include(boost_include)

include/boost/python/detail/is_auto_ptr.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
# ifndef BOOST_NO_AUTO_PTR
99
# include <boost/python/detail/is_xxx.hpp>
1010
# include <memory>
11+
# else
12+
# include <boost/mpl/bool.hpp>
1113
# endif
1214

1315
namespace boost { namespace python { namespace detail {

include/boost/python/numpy/dtype.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <boost/python/numpy/numpy_object_mgr_traits.hpp>
1818
#include <boost/mpl/for_each.hpp>
1919
#include <boost/python/detail/type_traits.hpp>
20+
#include <boost/type_traits/is_unsigned.hpp>
2021

2122
namespace boost { namespace python { namespace numpy {
2223

test/back_reference.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ BOOST_PYTHON_MODULE(back_reference_ext)
9999
.def("set", &Y::set)
100100
;
101101

102-
class_<Z,std::auto_ptr<Z> >("Z", init<int>())
102+
class_<Z,std::shared_ptr<Z> >("Z", init<int>())
103103
.def("value", &Z::value)
104104
.def("set", &Z::set)
105105
;

test/copy_ctor_mutates_rhs.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,13 @@
99

1010
struct foo
1111
{
12-
operator std::auto_ptr<int>&() const;
12+
operator std::shared_ptr<int>&() const;
1313
};
1414

1515
int main()
1616
{
1717
using namespace boost::python::detail;
1818
BOOST_STATIC_ASSERT(!copy_ctor_mutates_rhs<int>::value);
19-
BOOST_STATIC_ASSERT(copy_ctor_mutates_rhs<std::auto_ptr<int> >::value);
2019
BOOST_STATIC_ASSERT(!copy_ctor_mutates_rhs<std::string>::value);
2120
BOOST_STATIC_ASSERT(!copy_ctor_mutates_rhs<foo>::value);
2221
return 0;

test/fabscript

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ for t in [('injected',),
119119

120120
tests.append(extension_test('shared_ptr',
121121
condition=set.define.contains('HAS_CXX11')))
122-
tests.append(extension_test('polymorphism2_auto_ptr',
123-
condition=set.define.contains('HAS_CXX11').not_()))
124-
tests.append(extension_test('auto_ptr',
125-
condition=set.define.contains('HAS_CXX11')))
122+
#tests.append(extension_test('polymorphism2_auto_ptr',
123+
# condition=set.define.contains('HAS_CXX11').not_()))
124+
#tests.append(extension_test('auto_ptr',
125+
# condition=set.define.contains('HAS_CXX11')))
126126

127127
import_ = binary('import_', ['import_.cpp', src.bpl], features=features|python_libs)
128128
if platform.os == 'Windows':

test/injected.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ typedef test_class<> X;
1717

1818
X* empty() { return new X(1000); }
1919

20-
std::auto_ptr<X> sum(int a, int b) { return std::auto_ptr<X>(new X(a+b)); }
20+
std::shared_ptr<X> sum(int a, int b) { return std::shared_ptr<X>(new X(a+b)); }
2121

2222
boost::shared_ptr<X> product(int a, int b, int c)
2323
{

0 commit comments

Comments
 (0)