I plan also to use LibTorch and  C++ 20 (mainly focusing on concepts).
Is it sufficient just to fix result_of or it’s more complex task?
Were you able to do it or just gave up?
I don’t see any activity here so I assume nobody in torch team is interested in compiling it
with modern c++