debugger: add dumper for boost::optional

This commit is contained in:
hjk
2010-08-25 14:19:33 +02:00
parent 36e8b65d59
commit 80dc54acff
3 changed files with 53 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
TARGET = boost
CONFIG += qt
DEPENDPATH += .
INCLUDEPATH += .
SOURCES += main.cpp
+31
View File
@@ -0,0 +1,31 @@
#include <boost/optional.hpp>
using namespace boost;
struct Large
{
Large() { d1 = d2 = d3 = d4 = d5 = 0; }
double d1;
double d2;
double d3;
double d4;
double d5;
};
void testOptional()
{
optional<int> i;
optional<double> d;
optional<Large> l;
i = 1;
l = Large();
i = 2;
i = 3;
}
int main()
{
testOptional();
}