clipp icon indicating copy to clipboard operation
clipp copied to clipboard

Compiler error when compiling with MSVC & C++20

Open andreasWallner opened this issue 3 years ago • 4 comments

The std::result_of type trait was removed with C++20 in favor of std::invoke_result. With on of MSVCs latest updates they did this removal (if set to compile as C++20), leading to compile errors of clipp because of it's use in e.g. https://github.com/muellan/clipp/blob/2c32b2f1f7cc530b1ec1f62c92f698643bb368db/include/clipp.h#L160-L163

To reproduce you can run the testsuite with /std:c++latest when using at least MSVC16.7.3 (did not check if the change occured with this or an earlier version)

andreasWallner avatar Sep 12 '20 16:09 andreasWallner

Is there an ETA on when this fix will be merged?

Silveryard avatar Sep 10 '21 07:09 Silveryard

Same problems

FlyAndNotDown avatar Apr 05 '22 16:04 FlyAndNotDown

Any plans for this to be released in upcoming new version. (1.2.4 ?) so conan can provided updated versions that compiles with C++20 ?

Is this opensource still alive ?

obi0ne avatar May 10 '23 08:05 obi0ne

There is a fork by @GerHobbelt that includes this and quite a few other fixes: https://github.com/GerHobbelt/clipp

andreasWallner avatar May 13 '23 16:05 andreasWallner