Boost logo

Boost-Commit :

From: emil_at_[hidden]
Date: 2008-04-14 13:31:38


Author: emildotchevski
Date: 2008-04-14 13:31:38 EDT (Mon, 14 Apr 2008)
New Revision: 44419
URL: http://svn.boost.org/trac/boost/changeset/44419

Log:
minor to_string fix
Text files modified:
   trunk/boost/exception/to_string.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/exception/to_string.hpp
==============================================================================
--- trunk/boost/exception/to_string.hpp (original)
+++ trunk/boost/exception/to_string.hpp 2008-04-14 13:31:38 EDT (Mon, 14 Apr 2008)
@@ -33,7 +33,8 @@
         struct
         has_to_string_impl<T,false>
             {
- enum e { value=1!=sizeof(to_string(*(T*)0)) };
+ static T const & f();
+ enum e { value=1!=sizeof(to_string(f())) };
             };
         }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk