diff options
Diffstat (limited to 'examples/xhtml')
-rw-r--r-- | examples/xhtml/driver.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/xhtml/driver.cxx b/examples/xhtml/driver.cxx index ff1d2a4..d22defc 100644 --- a/examples/xhtml/driver.cxx +++ b/examples/xhtml/driver.cxx @@ -93,8 +93,10 @@ namespace xhtml // s << attr << 123 << ~attr; // + typedef void serialize_function (serializer&); + void operator() (serializer& s) const {s.start_attribute (name);} - void (*operator~ ())(serializer& s) const {return &end;} + serialize_function* operator~ () const {return &end;} static void end (serializer& s) {s.end_attribute ();} }; |