Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with instantiating lazycsv::parser #10

Open
JackBotBuilt opened this issue May 29, 2024 · 1 comment
Open

Problem with instantiating lazycsv::parser #10

JackBotBuilt opened this issue May 29, 2024 · 1 comment

Comments

@JackBotBuilt
Copy link

When compiling a project that requires lazy csv I get the following issue:

In instantiation of ‘class lazycsv::parser<lazycsv::mmap_source, lazycsv::has_header<false>, lazycsv::delimiter<','>, lazycsv::trim_chars<' ', '\011'> >’:

../subprojects/lazycsv/include/lazycsv.hpp:367:11: error: ‘value’ is not a member of ‘lazycsv::trim_chars<' ', '\011'>’ 367 | using cell_iterator = detail::fw_iterator<cell, detail::chunk_cells<delimiter::value, quote_char::value>>; | ^~~~~~~~~~~~~ At global scope:

I am not sure what to make of it so any help would be greatly appreciated.

@ashtum
Copy link
Owner

ashtum commented May 30, 2024

It seems you just forgot to pass lazycsv::quote_char<'"'>. Using it like the following should resolve the issue:

using parser_t = lazycsv::parser<
    lazycsv::mmap_source,
    lazycsv::has_header<false>,
    lazycsv::delimiter<','>,
    lazycsv::quote_char<'"'>,
    lazycsv::trim_chars<' ', '\011'>>;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants