From 08607bca7239f6894dc5cc41c0b0986021c89e71 Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Mon, 14 Apr 2008 17:31:38 +0000 Subject: [PATCH] minor to_string fix [SVN r44419] --- include/boost/exception/to_string.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/exception/to_string.hpp b/include/boost/exception/to_string.hpp index 631231f..784c7fa 100644 --- a/include/boost/exception/to_string.hpp +++ b/include/boost/exception/to_string.hpp @@ -33,7 +33,8 @@ boost struct has_to_string_impl { - enum e { value=1!=sizeof(to_string(*(T*)0)) }; + static T const & f(); + enum e { value=1!=sizeof(to_string(f())) }; }; }