mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
istringstream_nocopy: Implement in a standards-compliant way.
Fixes the problem mentioned in e6a61b8da7
See #1135
This commit is contained in:
parent
1cf4801108
commit
4fc30922cf
4 changed files with 89 additions and 15 deletions
|
@ -152,7 +152,7 @@ static StringSet parseStrings(std::istream & str, bool arePaths)
|
|||
static Derivation parseDerivation(const string & s)
|
||||
{
|
||||
Derivation drv;
|
||||
std::istringstream str(s);
|
||||
istringstream_nocopy str(s);
|
||||
expect(str, "Derive([");
|
||||
|
||||
/* Parse the list of outputs. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue