Skip to content

1. fix DelimWriter constructor over a filename#251

Merged
vincentlaucsb merged 2 commits intovincentlaucsb:masterfrom
kfiring:pl/csv-writer-fix
Feb 18, 2026
Merged

1. fix DelimWriter constructor over a filename#251
vincentlaucsb merged 2 commits intovincentlaucsb:masterfrom
kfiring:pl/csv-writer-fix

Conversation

@kfiring
Copy link
Copy Markdown
Contributor

@kfiring kfiring commented Oct 21, 2024

DelimWriter constructor over a filename used std::ifstream which i think it maybe a unintentional mistake?

hirohira9119 added a commit to hirohira9119/csv-parser that referenced this pull request Oct 22, 2024
hirohira9119 added a commit to hirohira9119/csv-parser that referenced this pull request Oct 23, 2024
cherry pick and modify: /vincentlaucsb/csv-parser/pull/vincentlaucsb#251
@vincentlaucsb
Copy link
Copy Markdown
Owner

Thanks for the PR and for flagging the filename ctor bug — you were absolutely on the money about the issue.

I added some changes just make the lifetime semantics safe and prevent undefined behavior.

Comment thread tests/test_write_csv.cpp Dismissed
Comment thread tests/test_write_csv.cpp Dismissed
@vincentlaucsb vincentlaucsb merged commit 729d767 into vincentlaucsb:master Feb 18, 2026
13 checks passed
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

Successfully merging this pull request may close these issues.

3 participants