We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d1d72 commit 66ee89dCopy full SHA for 66ee89d
src/common/io.h
@@ -384,7 +384,8 @@ class PrivateMmapConstStream : public AlignedResourceReadStream {
384
* @param length See the `length` parameter of `mmap` for details.
385
*/
386
explicit PrivateMmapConstStream(std::string path, std::size_t offset, std::size_t length)
387
- : AlignedResourceReadStream{std::make_shared<MmapResource>(path, offset, length)} {}
+ : AlignedResourceReadStream{std::shared_ptr<MmapResource>{ // NOLINT
388
+ new MmapResource{std::move(path), offset, length}}} {}
389
~PrivateMmapConstStream() noexcept(false) override;
390
};
391
0 commit comments