Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我把正的'int'放在我的任何变量上。然后我试图将它转换为'unsigned long'。我有一个关于糟糕的演员阵容的例外。我如何可以更灵活地使用 'boost::any_cast' 来考虑整数数据。
将其提取到一个临时变量中,然后将其转换为您想要的整数类型。