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())) }; }; }