diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-10-17 21:50:12 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-10-17 21:50:12 +0000 |
commit | 7ed46c15744461534478e2ed0aa25a2b2e536c6f (patch) | |
tree | 93c852df028ab6b4eef344c86a592df88108f6c4 /src/libstore | |
parent | 57d0432b395cc4d70792d2df5794ff2e0dd02d3d (diff) |
Explain that `upcast_goal` is still a static cast
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/build/worker.hh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libstore/build/worker.hh b/src/libstore/build/worker.hh index f8bacc514..3a53a8def 100644 --- a/src/libstore/build/worker.hh +++ b/src/libstore/build/worker.hh @@ -15,7 +15,11 @@ class SubstitutionGoal; class SubstitutionGoal : public Goal; - even when Goal is a complete type; */ + even when Goal is a complete type. + + This is still a static cast. The purpose of exporting it is to define it in + a place where `SubstitutionGoal` is concrete, and use it in a place where it + is opaque. */ GoalPtr upcast_goal(std::shared_ptr<SubstitutionGoal> subGoal); typedef std::chrono::time_point<std::chrono::steady_clock> steady_time_point; |