aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/visitor.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/visitor.hh')
-rw-r--r--paludis/util/visitor.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/paludis/util/visitor.hh b/paludis/util/visitor.hh
index 8b2c0d96a..c51429b4a 100644
--- a/paludis/util/visitor.hh
+++ b/paludis/util/visitor.hh
@@ -23,6 +23,7 @@
#include <paludis/util/attributes.hh>
#include <paludis/util/visitor-fwd.hh>
#include <paludis/util/no_type.hh>
+#include <functional>
namespace paludis
{
@@ -218,6 +219,9 @@ namespace paludis
return BaseMadeVisitor<CallResultType<Case_>, Case_, Cases_...>{ firstcase, cases... };
}
+ template <typename Result_, typename Base_>
+ using Revisit = std::function<Result_ (const Base_ &)>;
+
template <>
class DeclareAbstractVisitMethods<TypeListTail>
{