Boost 似乎有两种变体类模板的实现:
boost::variant
boost::variant2
Boost 两个包含同一概念的两个版本的情况很少见(尽管并非闻所未闻)。为什么变体会发生这种情况?这些变体有何不同?
c++ boost boost-variant boost-variant2
boost ×1
boost-variant ×1
boost-variant2 ×1
c++ ×1