aboutsummaryrefslogtreecommitdiff
path: root/paludis/selection_handler.hh
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 09:21:59 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 18:54:47 +0100
commit34700872057c99c57416612fbc264c48cfd38f9d (patch)
tree044975f3c70d18160b5a431f71fad75dbe16af88 /paludis/selection_handler.hh
parent801afbbaf5570b96b4717147b3d7f6ff93454c8d (diff)
downloadpaludis-34700872057c99c57416612fbc264c48cfd38f9d.tar.gz
paludis-34700872057c99c57416612fbc264c48cfd38f9d.tar.xz
Kill NonCopyable, make Singleton its own thing
Diffstat (limited to 'paludis/selection_handler.hh')
-rw-r--r--paludis/selection_handler.hh9
1 files changed, 4 insertions, 5 deletions
diff --git a/paludis/selection_handler.hh b/paludis/selection_handler.hh
index 401be62..0d4ab69 100644
--- a/paludis/selection_handler.hh
+++ b/paludis/selection_handler.hh
@@ -26,13 +26,11 @@
#include <paludis/environment-fwd.hh>
#include <paludis/package_id-fwd.hh>
#include <paludis/util/attributes.hh>
-#include <paludis/util/instantiation_policy.hh>
#include <tr1/memory>
namespace paludis
{
- class SelectionHandler :
- private InstantiationPolicy<SelectionHandler, instantiation_method::NonCopyableTag>
+ class SelectionHandler
{
protected:
const FilteredGenerator _fg;
@@ -45,13 +43,14 @@ namespace paludis
public:
virtual ~SelectionHandler() = 0;
+ SelectionHandler(const SelectionHandler &) = delete;
+ SelectionHandler & operator= (const SelectionHandler &) = delete;
+
virtual std::string as_string() const = 0;
virtual std::tr1::shared_ptr<PackageIDSequence> perform_select(const Environment * const) const
PALUDIS_ATTRIBUTE((warn_unused_result)) = 0;
};
-
- extern template class InstantiationPolicy<SelectionHandler, instantiation_method::NonCopyableTag>;
}
#endif