We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86d6b9a commit d31c03eCopy full SHA for d31c03e
expected.natvis
@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
3
+ <Type Name="tl::expected<*,*>">
4
+ <DisplayString Condition="!m_has_val">Unexpected {m_unexpect.m_val}</DisplayString>
5
+ <DisplayString Condition="strcmp("$T1","void")==0">Expected</DisplayString>
6
+ <DisplayString Condition="strcmp("$T1","void")!=0">Expected {m_val}</DisplayString>
7
+
8
+ <Expand>
9
+ <Item Name="Unexpected value" Condition="!m_has_val">m_unexpect.m_val</Item>
10
+ <Item Name="Expected value" Condition="strcmp("$T1","void")!=0">m_val</Item>
11
+ </Expand>
12
+ </Type>
13
+</AutoVisualizer>
0 commit comments