2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-24 18:12:43 +00:00

Add support for std::shared_ptr.

This commit is contained in:
Stefan Seefeld
2016-09-22 19:46:38 -04:00
parent 5029273ca8
commit 97e4b34a15
13 changed files with 559 additions and 342 deletions

20
test/boost_shared_ptr.cpp Normal file
View File

@@ -0,0 +1,20 @@
// Copyright David Abrahams 2002.
// Copyright Stefan Seefeld 2016.
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/python/module.hpp>
#include <boost/python/class.hpp>
#include <boost/python/call_method.hpp>
#include <boost/python/extract.hpp>
#include <boost/python/def.hpp>
#include <boost/shared_ptr.hpp>
#include <memory>
using boost::shared_ptr;
#define MODULE boost_shared_ptr_ext
#include "shared_ptr.hpp"
#include "module_tail.cpp"