aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-08 09:37:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-01-08 09:40:58 +0000
commitf8d478e0e274ea05882d0b3de1dbe4dcdbce0d64 (patch)
treec9b7bee9b54590c9f675398f669938209def4f78 /doc
parente1b0751bc45a46bd2007338036fe3deee921eaf3 (diff)
downloadpaludis-f8d478e0e274ea05882d0b3de1dbe4dcdbce0d64.tar.gz
paludis-f8d478e0e274ea05882d0b3de1dbe4dcdbce0d64.tar.xz
Don't rely upon bind discarding args
Diffstat (limited to 'doc')
-rw-r--r--doc/api/cplusplus/examples/example_action.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/api/cplusplus/examples/example_action.cc b/doc/api/cplusplus/examples/example_action.cc
index 05bdb6f0c..7dd5c905b 100644
--- a/doc/api/cplusplus/examples/example_action.cc
+++ b/doc/api/cplusplus/examples/example_action.cc
@@ -34,6 +34,12 @@ namespace
{
return std::make_shared<StandardOutputManager>();
}
+
+ /* We just want to run all phases for actions. */
+ WantPhase want_all_phases(const std::string &)
+ {
+ return wp_yes;
+ }
}
int main(int argc, char * argv[])
@@ -84,7 +90,7 @@ int main(int argc, char * argv[])
n::ignore_unfetched() = false,
n::make_output_manager() = &make_standard_output_manager,
n::safe_resume() = true,
- n::want_phase() = std::bind(return_literal_function(wp_yes))
+ n::want_phase() = &want_all_phases
));
try
{