2
0
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:
Dave Abrahams
2002-11-20 22:58:57 +00:00
parent 983b23db92
commit c30e12f956
2 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ namespace boost { namespace python
"../../../utility/utility.htm#Class noncopyable">noncopyable</a>
{
public:
scope(object const&amp;);
explicit scope(object const&amp;);
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&amp; x);
explicit scope(object const&amp; 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>.

View File

@@ -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();