commit | d198322032c6a5b5a95c64fd1850e26aaea4a0a5 | [log] [tgz] |
---|---|---|
author | Lee Thomason <leethomason@gmail.com> | Mon Feb 06 08:41:24 2012 -0800 |
committer | Lee Thomason <leethomason@gmail.com> | Mon Feb 06 08:41:24 2012 -0800 |
tree | 733ec7a308a4702eaa39d8d7402c60e26a550dc8 | |
parent | 2c85a711f109501bf0862e94420012c949c21376 [diff] [blame] |
finally have the placement new working as desired.
diff --git a/xmltest.cpp b/xmltest.cpp index 5df3feb..bef0216 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -61,5 +61,11 @@ root->InsertEndChild( newElement ); doc.Print(); } + { + XMLDocument* doc = new XMLDocument(); + static const char* test = "<element><sub/></element>"; + doc->Parse( test ); + delete doc; + } return 0; } \ No newline at end of file