Skip to content
Snippets Groups Projects
Commit d99acd56 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

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.
parent f65028e3
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment