|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57668 - trunk/boost/exception/detail
From: emil_at_[hidden]
Date: 2009-11-14 23:26:36
Author: emildotchevski
Date: 2009-11-14 23:26:36 EST (Sat, 14 Nov 2009)
New Revision: 57668
URL: http://svn.boost.org/trac/boost/changeset/57668
Log:
Fixed unqualified use of size_t in object_hex_dump.hpp
Text files modified:
trunk/boost/exception/detail/object_hex_dump.hpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/boost/exception/detail/object_hex_dump.hpp
==============================================================================
--- trunk/boost/exception/detail/object_hex_dump.hpp (original)
+++ trunk/boost/exception/detail/object_hex_dump.hpp 2009-11-14 23:26:36 EST (Sat, 14 Nov 2009)
@@ -11,6 +11,7 @@
#include <ios>
#include <string>
#include <sstream>
+#include <cstdlib>
namespace
boost
@@ -21,11 +22,11 @@
template <class T>
inline
std::string
- object_hex_dump( T const & x, size_t max_size=16 )
+ object_hex_dump( T const & x, std::size_t max_size=16 )
{
std::ostringstream s;
s << "type: " << type_name<T>() << ", size: " << sizeof(T) << ", dump: ";
- size_t n=sizeof(T)>max_size?max_size:sizeof(T);
+ std::size_t n=sizeof(T)>max_size?max_size:sizeof(T);
s.fill('0');
s.width(2);
unsigned char const * b=reinterpret_cast<unsigned char const *>(&x);
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