mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 17:32:55 +00:00
Always say "private noncopyable" to avoid warnings.
[SVN r12762]
This commit is contained in:
@@ -233,7 +233,7 @@ class BOOST_PYTHON_DECL_TEMPLATE meta_class
|
||||
boost::python::detail::getattrable<
|
||||
boost::python::detail::setattrable<
|
||||
boost::python::detail::type_object<class_t<T> > > > > >,
|
||||
boost::noncopyable
|
||||
private boost::noncopyable
|
||||
{
|
||||
public:
|
||||
meta_class();
|
||||
|
||||
@@ -16,7 +16,7 @@ struct BOOST_PYTHON_DECL body;
|
||||
// The common base class for unwrap_ and wrap_ handle objects. They
|
||||
// share a common base so that handles can be linked into a chain
|
||||
// within a function wrapper which is managed by a single object.
|
||||
struct BOOST_PYTHON_DECL handle : boost::noncopyable
|
||||
struct BOOST_PYTHON_DECL handle : private boost::noncopyable
|
||||
{
|
||||
public: // member functions
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ template <class T> struct holder;
|
||||
// To identify a class, we don't need cv/reference decorations
|
||||
typedef converter::undecorated_type_id_t class_id;
|
||||
|
||||
struct BOOST_PYTHON_DECL class_base : noncopyable
|
||||
struct BOOST_PYTHON_DECL class_base : private noncopyable
|
||||
{
|
||||
// constructor
|
||||
class_base(
|
||||
@@ -44,7 +44,7 @@ struct BOOST_PYTHON_DECL class_base : noncopyable
|
||||
};
|
||||
|
||||
// Base class for all holders
|
||||
struct BOOST_PYTHON_DECL instance_holder : noncopyable
|
||||
struct BOOST_PYTHON_DECL instance_holder : private noncopyable
|
||||
{
|
||||
public:
|
||||
instance_holder();
|
||||
|
||||
@@ -27,8 +27,8 @@ namespace bpl_test {
|
||||
// example: Foo, Bar, and Baz are C++ classes we want to wrap.
|
||||
//
|
||||
|
||||
class Foo // prohibit copying, proving that it doesn't choke
|
||||
: boost::noncopyable // our generation of to_python().
|
||||
class Foo // prohibit copying, proving that it doesn't choke
|
||||
: private boost::noncopyable // our generation of to_python().
|
||||
{
|
||||
public: // constructor/destructor
|
||||
Foo(int x) : m_x(x) {}
|
||||
|
||||
Reference in New Issue
Block a user