mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 09:19:36 +01:00
WIP
This commit is contained in:
parent
754c910953
commit
efcd30da89
17 changed files with 88 additions and 42 deletions
|
|
@ -38,8 +38,16 @@ std::string renderContentAddress(ContentAddress ca) {
|
|||
}, ca);
|
||||
}
|
||||
|
||||
std::string renderContentAddress(std::optionalContent<Address> ca) {
|
||||
return ca ? renderContentAddress(*ca) else "";
|
||||
ContentAddress parseCa(std::string_view rawCa) {
|
||||
throw Error("TODO");
|
||||
};
|
||||
|
||||
std::optional<ContentAddress> parseCaOpt(std::string_view rawCaOpt) {
|
||||
return rawCaOpt == "" ? std::optional<ContentAddress> {} : parseCa(rawCaOpt);
|
||||
};
|
||||
|
||||
std::string renderContentAddress(std::optional<ContentAddress> ca) {
|
||||
return ca ? renderContentAddress(*ca) : "";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue