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.
我想为(C++)模板类扩展一个 natvis 可视化器。有没有办法显示第一个模板参数的类型名称?
boost::variant<int,bool> v; v=1;展示1 (int)或类似的东西会很棒
boost::variant<int,bool> v; v=1;
1 (int)
If you want to show $T1 as a string, wrap it with ". For example, for
$T1
"
<DisplayString>{*($T1*)storage_.data_.buf} {"$T1"}</DisplayString>
in your case you will see 1 "int"
1 "int"