I have a very weird compilation problem with this snippet:
#include #include struct Class { virtual std::any get(int, int
This is libstdc++ bug 90415.
I am not sure what it is about std::any that causes this problem. Note that your example fails on clang using libstdc++, but succeeds when using libc++.
std::any