refactor: replace util::Ref with std::any (C++17)
As described in util/ref.h
: "This implements a small subset of the functionality in C++17's std::any class, and can be dropped when the project updates to C++17". For accessing the contained object of a std::any
instance, a helper template function AnyPtr
is introduced (thanks to ryanofsky).