visual studio 2010调试时如何获取boost::variant变量的隐藏类型?

How to get the hidden type of boost::variant variable while debugging in visual studio 2010?

我有一个变量m_Value:

boost::variant< int64_t, float64_t, std::string > m_Value

我想在调试时获取隐藏类型:是 int64_t OR float64_t OR std::string?

不幸的是,我在 Visual Studio "Locals" Window 的变量描述中找不到它(见下文)。你知道它显示在哪里吗?

这里有调试可视化工具:https://github.com/KindDragon/CPPDebuggerVisualizers,它包括对增强类型的支持:

  • boost::shared_ptrboost::weak_ptrboost::intrusive_ptr
  • boost::shared_arrayboost::scoped_ptrboost::scoped_array
  • boost::ptr_arrayboost::ptr_vectorboost::ptr_list
  • boost::ptr_dequeboost::ptr_mapboost::ptr_set
  • boost::ptr_multimap, boost::ptr_multiset boost::array,
  • boost::dynamic_bitset, boost::circular_buffer boost::unordered_map,
  • boost::unordered_setboost::unordered_multimap
  • boost::unordered_multisetboost::intrusive::list
  • boost::intrusive::slist, boost::intrusive::set
  • boost::container::basic_stringboost::container::deque
  • boost::container::vector boost::optional, boost::any, boost::variant
  • boost::filesystem::pathboost::filesystem::directory_entry
  • boost::filesystem::file_status boost::posix_time::ptime,
  • boost::posix_time::time_duration boost::multiprecision
  • boost::rational boost::regex boost::interprocess::offset_ptr
  • boost::tribool boost::unique_lock boost::uuids::uuid