1
0
Fork 0
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:
Shea Levy 2017-03-06 13:03:02 -05:00
parent 1cf4801108
commit 4fc30922cf
4 changed files with 89 additions and 15 deletions

View file

@ -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. */