Skip to content

Latest commit

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

C++/Python Smart Pointers Research

This repository is for experiments with C++ smart pointers and Python bindings.

For easier reproducibility, each experiment is self-contained and is located in a separate folder, e.g., libs/x01.

Below is a quick description of each experiment:

ExperimentDescription
x01Basic by-value class, no smart pointers
x02Tree structure using std::unique_ptr
x03Tree structure using std::shared_ptr (minimal)
x04Memory leaks with std::shared_ptr: Action/Widget cyclic dependency
x05Utilities for wrapping functions taking/returning std::weak_ptr
x06Fix leaks by exposing std::weak_ptr as separate Python class

How to build?

git clone --recursive https://github.com/vgc/cpp-py-smart-pointers-research
cd https://github.com/vgc/cpp-py-smart-pointers-research
mkdir build && cd build
cmake ..
cmake --build . -j 4

About

Experiments with C++ smart pointers and Python bindings

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages