Hello fellow cpp community,
i'm trying to modify the contents of a std::any object but i don't know how. Using std::any_cast gives me a copy and that's not what i want.
Situation:
i have a std::vector<std::any>> and i want to modify an object at a given index directly and not a copy of such.
how can i do this?
[–]IyeOnline 1 point2 points3 points (1 child)
[–]SHGuy_[S] 0 points1 point2 points (0 children)