1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 07:52:43 +01:00

libutil: Document hacks and problems around Pos class

This should provide context for follow-up commits in
the patch series.

(cherry picked from commit bf12aedf2e)
This commit is contained in:
Sergei Zimmerman 2025-03-13 12:55:42 +00:00 committed by Mergify
parent fd86343b89
commit 7eaf8ec028
3 changed files with 20 additions and 0 deletions

View file

@ -50,6 +50,7 @@ struct Pos
explicit operator bool() const { return line > 0; }
/* TODO: Why std::shared_ptr<Pos> and not std::shared_ptr<const Pos>? */
operator std::shared_ptr<Pos>() const;
/**