Skip to content

vgc/cpp-py-smart-pointers-research

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:

Experiment Description
x01 Basic by-value class, no smart pointers
x02 Tree structure using std::unique_ptr
x03 Tree structure using std::shared_ptr (minimal)
x04 Memory leaks with std::shared_ptr: Action/Widget cyclic dependency
x05 Utilities for wrapping functions taking/returning std::weak_ptr
x06 Fix 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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published