Aspose.Words for C++ Compile error when using C++20 (work on C++17)

Hi

I’m creating a new c++ console project using visual studio 2022.
I’ve just installed the Aspose.Words.cpp Nuget package.

When I compile and run the project using “ISO C++17 Standard (/std:c++17)”, everything works.
(Project properties->C/C+±>Language->C++ Language Standard)

When I use “ISO C++20 Standard (/std:c++20)”, I get a compile time error

"Error	C2760 syntax error: '<' was unexpected here; expected ';'	...packages\CodePorting.Translator.Cs2Cpp.Framework.23.5.0\build\native\include\system\object_ext.h	676	

This is the line

using retval_t = typename std::result_of<decltype(func)()>::type;

Can I use the library without reverting my project to use an older c++ version?

Thanks

@Saehr2333
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSCPP-1244

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like