Closed GoogleCodeExporter closed 8 years ago
I think the main error is this one:
csv.h:102:19: error: field 'bytes_read' has incomplete type
which claims that std::future<int> has not been defined, which is strange as
<future> is included. Does the future example from
http://en.cppreference.com/w/cpp/thread/future compile and run? If it does not
then the problem is with your compiler. If it does could you provide the
main.cpp file.
Original comment by strasser...@gmail.com
on 25 Jan 2013 at 2:22
[deleted comment]
Have you tried the minimal examples from
http://en.cppreference.com/w/cpp/thread/future ? I do not have access to a
MinGW compiler and can therefore not test whether incomplete C++11 support is
indeed the culprit as I suspect.
Regards
Original comment by strasser...@gmail.com
on 28 Jan 2013 at 10:30
It seems that future is not supported yet on MinGW
http://stackoverflow.com/questions/10209871/c11-stdasync-doesnt-work-in-mingw
Regards
Original comment by hassanba...@gmail.com
on 29 Jan 2013 at 1:15
You can try making bytes_read and int and replacing all instances of
bytes_read.get() with the code that was delegated to the future. This way it
might work on your compiler. If you do this then please post your code so that
other people using this MinGW version can use it too.
Original comment by strasser...@gmail.com
on 30 Jan 2013 at 2:39
Original issue reported on code.google.com by
hassanba...@gmail.com
on 25 Jan 2013 at 9:26