mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
Explain that upcast_goal
is still a static cast
This commit is contained in:
parent
57d0432b39
commit
7ed46c1574
1 changed files with 5 additions and 1 deletions
|
@ -15,7 +15,11 @@ class SubstitutionGoal;
|
||||||
|
|
||||||
class SubstitutionGoal : public Goal;
|
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);
|
GoalPtr upcast_goal(std::shared_ptr<SubstitutionGoal> subGoal);
|
||||||
|
|
||||||
typedef std::chrono::time_point<std::chrono::steady_clock> steady_time_point;
|
typedef std::chrono::time_point<std::chrono::steady_clock> steady_time_point;
|
||||||
|
|
Loading…
Reference in a new issue