mirror of
https://github.com/boostorg/python.git
synced 2026-02-02 21:12:15 +00:00
Make scope constructor explicit
[SVN r16350]
This commit is contained in:
@@ -85,7 +85,7 @@ namespace boost { namespace python
|
||||
"../../../utility/utility.htm#Class noncopyable">noncopyable</a>
|
||||
{
|
||||
public:
|
||||
scope(object const&);
|
||||
explicit scope(object const&);
|
||||
scope();
|
||||
~scope()
|
||||
};
|
||||
@@ -95,7 +95,7 @@ namespace boost { namespace python
|
||||
<h4><a name="scope-spec-ctors"></a>Class <code>scope</code> constructors
|
||||
and destructor</h4>
|
||||
<pre>
|
||||
scope(object const& x);
|
||||
explicit scope(object const& x);
|
||||
</pre>
|
||||
Stores a reference to the current associated scope object, and sets the
|
||||
associated scope object to the one referred to by <code>x.ptr()</code>.
|
||||
|
||||
@@ -16,7 +16,7 @@ class BOOST_PYTHON_DECL scope
|
||||
: public object, private noncopyable
|
||||
{
|
||||
public:
|
||||
inline scope(object const&);
|
||||
explicit inline scope(object const&);
|
||||
inline scope();
|
||||
inline ~scope();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user