nonius icon indicating copy to clipboard operation
nonius copied to clipboard

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

Open acki-m opened this issue 7 years ago • 0 comments

.../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

acki-m avatar Jan 23 '18 22:01 acki-m