summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2012-02-06 17:06:55 -0500
committerNat Goodspeed <nat@lindenlab.com>2012-02-06 17:06:55 -0500
commitd99acd56cdc41d72a073a4419e3e51c356e675bb (patch)
tree19dec6066f7e6c54402d247463081876f8abdbc7
parentf65028e38eda00cd2329bb1ab7db0261ae6452f2 (diff)
ManageAPR should be noncopyable. Make that explicit.
Any RAII class should either be noncopyable or should deal appropriately with a copy operation. ManageAPR is intended only for extremely simple cases, and hence should be noncopyable.
-rw-r--r--indra/test/manageapr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/test/manageapr.h b/indra/test/manageapr.h
index 0c1ca7b7be..2452fb6ae4 100644
--- a/indra/test/manageapr.h
+++ b/indra/test/manageapr.h
@@ -13,6 +13,7 @@
#define LL_MANAGEAPR_H
#include "llapr.h"
+#include <boost/noncopyable.hpp>
/**
* Declare a static instance of this class for dead-simple ll_init_apr() at
@@ -21,7 +22,7 @@
* instances of other classes that depend on APR already being initialized,
* the indeterminate static-constructor-order problem rears its ugly head.
*/
-class ManageAPR
+class ManageAPR: public boost::noncopyable
{
public:
ManageAPR()