aboutsummaryrefslogtreecommitdiff
path: root/xml/serializer
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-22 17:18:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-22 17:18:24 +0200
commit2959b2348fe969458cff8add0ed85eff4c93df97 (patch)
tree16e5d914bea5b87bd60775c609b5190b65deeaa5 /xml/serializer
parent83f40728c71c68007119f068b635f9c9ca2e2fc2 (diff)
Improve "callable" detection in serializer stream interface
This version "sees" operator() in the base.
Diffstat (limited to 'xml/serializer')
-rw-r--r--xml/serializer13
1 files changed, 4 insertions, 9 deletions
diff --git a/xml/serializer b/xml/serializer
index ee5779b..6251392 100644
--- a/xml/serializer
+++ b/xml/serializer
@@ -292,16 +292,11 @@ namespace xml
std::size_t depth_;
};
- // Stream-like interface for serializer. If the passed argument
- // is a function with the void f(serializer&) signature or is a
- // function object with the void operator() (serializer&) const
- // operator, then this function (object) is called with the passed
- // serializer. Otherwise, the argument is passed to the serializer's
- // characters() function.
+ // Stream-like interface for serializer. If the passed argument is
+ // callable with the serializer as its argument, then this function
+ // (object) is called with the passed serializer. Otherwise, the
+ // argument is passed to the serializer's characters() function.
//
- serializer&
- operator<< (serializer&, void (*func) (serializer&));
-
template <typename T>
serializer&
operator<< (serializer&, const T& value);