From 5630262c4ddde68515a88fd302f92a92593fd9af Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Sun, 15 Nov 2009 04:26:36 +0000 Subject: [PATCH] Fixed unqualified use of size_t in object_hex_dump.hpp [SVN r57668] --- include/boost/exception/detail/object_hex_dump.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/exception/detail/object_hex_dump.hpp b/include/boost/exception/detail/object_hex_dump.hpp index f535944..75a4179 100644 --- a/include/boost/exception/detail/object_hex_dump.hpp +++ b/include/boost/exception/detail/object_hex_dump.hpp @@ -11,6 +11,7 @@ #include #include #include +#include namespace boost @@ -21,11 +22,11 @@ boost template 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() << ", 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(&x);