Closed rajgoel closed 3 months ago
Sorry, didn't check the closed issues. This looks like a duplicate of #231.
I just looked at the code at https://github.com/vincentlaucsb/csv-parser/blob/ade1e985bdf95ed209e8592a4c61689231e0f4ed/single_include/csv.hpp#L7417 that causes the issue.
If I change
CSV_INLINE GuessScore calculate_score(csv::string_view head, CSVFormat format);
to
CSV_INLINE GuessScore calculate_score(csv::string_view head, const CSVFormat& format);
the problem is solved for me. Any reason to not use const CSVFormat& format
?
Thanks a lot for the great tool!
I just stumbled across some strange behavior when turning optimization to -O3 with gcc version 13.2.0. I receive the following compiler output:
I do not get any warnings with the -O2 flag.
I can compile if I add
-Wno-array-bounds
and-Wno-stringop-overread
to my compile options. The code appears to work, but I wonder whether this is a safe thing to do?Maybe there is something wrong in my code that leads to the problem:
These are the relevant parts from my cmake configuration:
Might be the same issue as #233