guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#45018] [PATCH 4/6] daemon: Run 'guix substitute --substitute' as an


From: Ludovic Courtès
Subject: [bug#45018] [PATCH 4/6] daemon: Run 'guix substitute --substitute' as an agent.
Date: Sun, 06 Dec 2020 22:53:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi,

Mathieu Othacehe <othacehe@gnu.org> skribis:

>> +    /* The substituter. */
>> +    std::shared_ptr<Agent> substituter;
>
> There's only one owner at a time, right? Maybe prefer unique_ptr.

I’m not sure I understand the semantics of ‘unique_ptr’.  ‘shared_ptr’
does reference counting, AIUI, and that’s what I want here, no?

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]