]> git.sesse.net Git - xml-template/blob - c++0x/simple.cpp
Make the C++0x syntax a lot more concise using initializer lists.
[xml-template] / c++0x / simple.cpp
1 #include <stdio.h>
2
3 #include "xml-template.h"
4
5 using namespace std;
6
7 int main(int argc, char **argv)
8 {
9         Substitute master_directive = {
10                 make_pair("title", new Replace("A very basic example")),
11                 make_pair("#hello", new Replace("Hello world!")),
12         };
13
14         process_file("../xml/simple.xml", argv[1], &master_directive);
15         return(0);
16 }