I’m trying to integrate the libtorch C++ frontend into a project that relies on some C++20 (std:c++latest) features. Libtorch will not compile out of the box with MSVC. I get errors related to std::result_of and std::result_of_t being used (in C++17.h), which have been deprecated in favor of std::invoke_result and std::invoke_result_t in C++20.
So it looks like I have two options:

Trying to dig into the libtorch source code and use std::invoke_result instead, without fully understanding the code (and then fix any subsequent errors I run into).
Downgrade my project to use C++17, which requires replacing a lot of lines (mostly designated initializers) with more error-prone code.

Neither one sounds very fun. Will libtorch support C++20 any time soon?