With std::variant<int, bool> I can call std::get<0>(var) to get the value in the variant as it's first type - int.
How can I do this with boost::variant? boost::get<> seems to support only getting by type and not by index and I find the documentation very difficult to understand.