CodexBloom - AI-Powered Q&A Platform

C++17 std::variant not working as expected with custom types and visit function

👀 Views: 0 💬 Answers: 1 📅 Created: 2025-08-23
c++17 stdvariant stdvisit customtypes

I'm encountering an issue with `std::variant` in C++17 where the `std::visit` function doesn't seem to properly handle my custom types. I have defined a `std::v...