aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/cxx/parser/performance/driver.cxx4
-rw-r--r--examples/cxx/parser/wildcard/driver.cxx4
-rw-r--r--examples/cxx/tree/performance/parsing.cxx2
-rw-r--r--examples/cxx/tree/performance/serialization.cxx2
4 files changed, 6 insertions, 6 deletions
diff --git a/examples/cxx/parser/performance/driver.cxx b/examples/cxx/parser/performance/driver.cxx
index 4efafdb..422f2b9 100644
--- a/examples/cxx/parser/performance/driver.cxx
+++ b/examples/cxx/parser/performance/driver.cxx
@@ -116,7 +116,7 @@ main (int argc, char* argv[])
//
for (int i (1); i < argc; ++i)
{
- std::string arg (argv[i]);
+ string arg (argv[i]);
if (arg == "-v")
{
@@ -188,7 +188,7 @@ main (int argc, char* argv[])
ifs.exceptions (ios_base::failbit);
ifs.open (file, ios::in | ios::ate);
- std::size_t size (ifs.tellg ());
+ size_t size (ifs.tellg ());
ifs.seekg (0, ios::beg);
char* buf = new char[size];
diff --git a/examples/cxx/parser/wildcard/driver.cxx b/examples/cxx/parser/wildcard/driver.cxx
index fb87232..7bd63eb 100644
--- a/examples/cxx/parser/wildcard/driver.cxx
+++ b/examples/cxx/parser/wildcard/driver.cxx
@@ -31,7 +31,7 @@ public:
virtual void
post_binary ()
{
- std::auto_ptr<xml_schema::buffer> buf (post_base64_binary ());
+ auto_ptr<xml_schema::buffer> buf (post_base64_binary ());
cerr << "size: " << buf->size () << endl
<< endl;
@@ -181,7 +181,7 @@ public:
}
private:
- std::size_t depth_;
+ size_t depth_;
xml_schema::parser_base* cur_;
// Parsers for the unsigned int, string and binary types.
diff --git a/examples/cxx/tree/performance/parsing.cxx b/examples/cxx/tree/performance/parsing.cxx
index f68b57c..8d662eb 100644
--- a/examples/cxx/tree/performance/parsing.cxx
+++ b/examples/cxx/tree/performance/parsing.cxx
@@ -42,7 +42,7 @@ parsing (const char* file, unsigned long iter, bool validate)
ifs.exceptions (ios_base::failbit);
ifs.open (file, ios::in | ios::ate);
- std::size_t size (ifs.tellg ());
+ size_t size (ifs.tellg ());
ifs.seekg (0, ios::beg);
char* buf = new char[size];
diff --git a/examples/cxx/tree/performance/serialization.cxx b/examples/cxx/tree/performance/serialization.cxx
index f888d40..12c43ae 100644
--- a/examples/cxx/tree/performance/serialization.cxx
+++ b/examples/cxx/tree/performance/serialization.cxx
@@ -58,7 +58,7 @@ serialization (const char* file, unsigned long iter)
xml_schema::flags::dont_pretty_print |
xml_schema::flags::no_xml_declaration);
- std::size_t size (ft.getLen ());
+ size_t size (ft.getLen ());
cerr << " document size: " << size << " bytes" << endl
<< " iterations: " << iter << endl;