diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-26 17:25:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-26 17:25:10 +0200 |
commit | 18568ff0ff3dce89d694b494c5dfc9a32e63c9e6 (patch) | |
tree | cd36895fdab3b30b8b61fcc3e12f8a92bb292203 /build/algorithm.ixx | |
parent | 95239b7c5404965d4f5ef997b5b75bf542a25192 (diff) |
Part two of dependency injection with auto-generation support
Diffstat (limited to 'build/algorithm.ixx')
-rw-r--r-- | build/algorithm.ixx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/algorithm.ixx b/build/algorithm.ixx index 3a6f183..7300848 100644 --- a/build/algorithm.ixx +++ b/build/algorithm.ixx @@ -83,4 +83,15 @@ namespace build } } } + + inline target_state + execute_direct (action a, target& t) + { + switch (t.state) + { + case target_state::unchanged: + case target_state::changed: return t.state; + default: return execute_impl (a, t); + } + } } |