ben-strasser / fast-cpp-csv-parser

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

forwarding to LineReader issue #13

Closed jkhoogland closed 8 years ago

jkhoogland commented 8 years ago

Hi,

when trying to pass in a istream& in here, clang barfs because it tries to call a copy ctor.

The proper fix is to make the argument take a universal ref...

explicit CSVReader(Args&&...args):in(std::forward<Args>(args)...){

Cheers Jiri

ben-strasser commented 8 years ago

Fix pushed