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:
20
test/boost_shared_ptr.cpp
Normal file
20
test/boost_shared_ptr.cpp
Normal 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"
|
||||
|
||||
Reference in New Issue
Block a user