mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 09:25:51 +00:00
Merge branch 'master' into smart_holder
This commit is contained in:
commit
ece3c55e88
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@ -905,8 +905,7 @@ jobs:
|
|||||||
- { sys: mingw64, env: x86_64 }
|
- { sys: mingw64, env: x86_64 }
|
||||||
- { sys: mingw32, env: i686 }
|
- { sys: mingw32, env: i686 }
|
||||||
steps:
|
steps:
|
||||||
# Force version because of https://github.com/msys2/setup-msys2/issues/167
|
- uses: msys2/setup-msys2@v2
|
||||||
- uses: msys2/setup-msys2@v2.4.2
|
|
||||||
with:
|
with:
|
||||||
msystem: ${{matrix.sys}}
|
msystem: ${{matrix.sys}}
|
||||||
install: >-
|
install: >-
|
||||||
@ -936,10 +935,10 @@ jobs:
|
|||||||
run: cmake --build build --target pytest -j 2
|
run: cmake --build build --target pytest -j 2
|
||||||
|
|
||||||
- name: C++11 tests
|
- name: C++11 tests
|
||||||
run: cmake --build build --target cpptest -j 2
|
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build --target cpptest -j 2
|
||||||
|
|
||||||
- name: Interface test C++11
|
- name: Interface test C++11
|
||||||
run: cmake --build build --target test_cmake_build
|
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build --target test_cmake_build
|
||||||
|
|
||||||
- name: Clean directory
|
- name: Clean directory
|
||||||
run: git clean -fdx
|
run: git clean -fdx
|
||||||
@ -954,10 +953,10 @@ jobs:
|
|||||||
run: cmake --build build2 --target pytest -j 2
|
run: cmake --build build2 --target pytest -j 2
|
||||||
|
|
||||||
- name: C++14 tests
|
- name: C++14 tests
|
||||||
run: cmake --build build2 --target cpptest -j 2
|
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build2 --target cpptest -j 2
|
||||||
|
|
||||||
- name: Interface test C++14
|
- name: Interface test C++14
|
||||||
run: cmake --build build2 --target test_cmake_build
|
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build2 --target test_cmake_build
|
||||||
|
|
||||||
- name: Clean directory
|
- name: Clean directory
|
||||||
run: git clean -fdx
|
run: git clean -fdx
|
||||||
@ -972,7 +971,7 @@ jobs:
|
|||||||
run: cmake --build build3 --target pytest -j 2
|
run: cmake --build build3 --target pytest -j 2
|
||||||
|
|
||||||
- name: C++17 tests
|
- name: C++17 tests
|
||||||
run: cmake --build build3 --target cpptest -j 2
|
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target cpptest -j 2
|
||||||
|
|
||||||
- name: Interface test C++17
|
- name: Interface test C++17
|
||||||
run: cmake --build build3 --target test_cmake_build
|
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target test_cmake_build
|
||||||
|
@ -9,7 +9,7 @@ that you are already familiar with the basics from :doc:`/classes`.
|
|||||||
Overriding virtual functions in Python
|
Overriding virtual functions in Python
|
||||||
======================================
|
======================================
|
||||||
|
|
||||||
Suppose that a C++ class or interface has a virtual function that we'd like to
|
Suppose that a C++ class or interface has a virtual function that we'd like
|
||||||
to override from within Python (we'll focus on the class ``Animal``; ``Dog`` is
|
to override from within Python (we'll focus on the class ``Animal``; ``Dog`` is
|
||||||
given as a specific example of how one would do this with traditional C++
|
given as a specific example of how one would do this with traditional C++
|
||||||
code).
|
code).
|
||||||
|
Loading…
Reference in New Issue
Block a user