libnonius / nonius

A C++ micro-benchmarking framework
https://nonius.io
Creative Commons Zero v1.0 Universal
358 stars 47 forks source link

noniuse does not compile with mingw 7.1 and c++17 #97

Open acki-m opened 6 years ago

acki-m commented 6 years ago
.../nonius-1.1.2/nonius/nonius.h++:1527:34: error: invalid use of incomplete type 'class std::future<nonius::estimate<double> >'
                 return std::async(std::launch::async, [=]{
                        ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
                     std::mt19937 rng(seed);
                     ~~~~~~~~~~~~~~~~~~~~~~~
                     auto resampled = resample(rng, n_resamples, first, last, f);
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     return bootstrap(confidence_level, first, last, resampled, f);
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 });
                 ~~

https://stackoverflow.com/questions/45565412/invalid-use-of-incomplete-type-using-stdfuture https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64735 seems to be you have to use boost on mingw too