mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
Always say "private noncopyable" to avoid warnings.
[SVN r12762]
This commit is contained in:
parent
e6fc2555f3
commit
4b636a7680
@ -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; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user