aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-20 05:37:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-20 05:37:07 +0200
commit1a90d389f3de098470618a56edf6ccd8a385a29e (patch)
tree0ca9b9932c931fdbfb7e2b87a5fe0c805c4aada8 /examples
parent26bb55df7471cd2f5f1d84800dd57a57daf686db (diff)
Fix Clang error
Diffstat (limited to 'examples')
-rw-r--r--examples/xhtml/driver.cxx4
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 ();}
};