forked from boostorg/utility
Always say "private noncopyable" to avoid warnings.
[SVN r12762]
This commit is contained in:
@ -57,7 +57,7 @@ struct object_id_compare
|
|||||||
// A singleton of this type coordinates the acknowledgements
|
// A singleton of this type coordinates the acknowledgements
|
||||||
// of objects being created and used.
|
// of objects being created and used.
|
||||||
class object_registrar
|
class object_registrar
|
||||||
: boost::noncopyable
|
: private boost::noncopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
class DontTreadOnMe : boost::noncopyable
|
class DontTreadOnMe : private boost::noncopyable
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DontTreadOnMe() { std::cout << "defanged!" << std::endl; }
|
DontTreadOnMe() { std::cout << "defanged!" << std::endl; }
|
||||||
|
Reference in New Issue
Block a user