Siv3D / OpenSiv3D

C++20 framework for creative coding 🎮🎨🎹 / Cross-platform support (Windows, macOS, Linux, and the Web)
https://siv3d.github.io/
MIT License
994 stars 136 forks source link

CSVのIReaderロードでビルドエラー #1215

Closed tyanmahou closed 5 months ago

tyanmahou commented 5 months ago

エラーの内容 | Describe the build error

CSVをReaderからロードしようとするとビルドエラーになります。

再現方法 | To Reproduce

CSV csv;
csv.load(MemoryReader());

ビルド環境 | Develop environment (please complete the following information):

備考 | Additional context

括弧がづれています

    template <class Reader, std::enable_if_t<std::is_base_of_v<IReader, Reader> && !std::is_lvalue_reference_v<Reader>>*>
    inline bool CSV::load(Reader&& reader, const StringView separators, const StringView quotes, const StringView escapes)
    {
-       return load(std::make_unique<Reader>(std::move(reader), separators, quotes, escapes));
+       return load(std::make_unique<Reader>(std::move(reader)), separators, quotes, escapes);
    }
Reputeless commented 5 months ago

Fixed. Good catch!