From 0e0ba19ead09e40855ecc354b4b3689dc24329e0 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 23 Jul 2015 00:48:32 +0100 Subject: [PATCH] stricter to_format check --- ostd/format.hh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ostd/format.hh b/ostd/format.hh index 90f7e5c..92c5860 100644 --- a/ostd/format.hh +++ b/ostd/format.hh @@ -399,9 +399,8 @@ protected: /* for custom container formatting */ template().to_format(declval(), - declval())), - bool + IsSame() + .to_format(declval(), declval())), bool >::value >> inline bool to_format(const T &v, R &writer, const FormatSpec &fs) { return v.to_format(writer, fs);