mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Add test_class_sh_property_non_owning
to CMakeLists.txt (#4590)
* use C++17 syntax to get rid of recursive template instantiations for concatenating type signatures (#4587) * Apply descr.h `src_loc` change (smart_holder PR #4022) to code added with master PR #4587 * Add test_class_sh_property_non_owning to CMakeLists.txt (fixes oversight in PR #4586) * Resolve clang-tidy errors. * clang-tidy auto fix --------- Co-authored-by: Konstantin Bespalov <kos5tya@yandex.ru>
This commit is contained in:
parent
13936bb258
commit
4f3a1a8231
@ -130,6 +130,7 @@ set(PYBIND11_TEST_FILES
|
||||
test_class_sh_mi_thunks
|
||||
test_class_sh_module_local.py
|
||||
test_class_sh_property
|
||||
test_class_sh_property_non_owning
|
||||
test_class_sh_shared_ptr_copy_move
|
||||
test_class_sh_trampoline_basic
|
||||
test_class_sh_trampoline_self_life_support
|
||||
|
@ -27,10 +27,10 @@ private:
|
||||
std::vector<DataField> vec;
|
||||
|
||||
public:
|
||||
DataFieldsHolder(std::size_t vec_size) {
|
||||
explicit DataFieldsHolder(std::size_t vec_size) {
|
||||
for (std::size_t i = 0; i < vec_size; i++) {
|
||||
int i11 = static_cast<int>(i) * 11;
|
||||
vec.push_back(DataField(13 + i11, 14 + i11, 15 + i11));
|
||||
vec.emplace_back(13 + i11, 14 + i11, 15 + i11);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user