ben-strasser / fast-cpp-csv-parser

fast-cpp-csv-parser
BSD 3-Clause "New" or "Revised" License
2.12k stars 439 forks source link

variable # of columns #9

Closed pwwatson closed 8 years ago

pwwatson commented 8 years ago

could you change the code so that you allow CSVReader to be defined with the number of rows specified by a variable rather than a constant, and then allow read_header to use a vector array of strings for the header names?

ben-strasser commented 8 years ago

The number of columns parsed corresponds to the number of parameters to the read_row function. The number of function parameters needs to be known at compile time.