mirror of
https://github.com/NixOS/nix
synced 2025-06-26 11:41:15 +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
|
@ -117,17 +117,6 @@ S3Helper::DownloadResult S3Helper::getObject(
|
|||
return res;
|
||||
}
|
||||
|
||||
#if __linux__
|
||||
|
||||
struct istringstream_nocopy : public std::stringstream
|
||||
{
|
||||
istringstream_nocopy(const std::string & s)
|
||||
{
|
||||
rdbuf()->pubsetbuf(
|
||||
(char *) s.data(), s.size());
|
||||
}
|
||||
};
|
||||
|
||||
struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
|
||||
{
|
||||
std::string bucketName;
|
||||
|
@ -313,8 +302,6 @@ static RegisterStoreImplementation regStore([](
|
|||
return store;
|
||||
});
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue