Improved to_string(std::pair) support.

[SVN r79252]
This commit is contained in:
Emil Dotchevski
2012-07-03 23:41:52 +00:00
parent e25f33aaf6
commit 9508b38e22
2 changed files with 13 additions and 0 deletions

View File

@ -101,6 +101,14 @@ boost
{
return exception_detail::to_string_dispatch::dispatch(x,s);
}
template <class T,class U,class Stub>
inline
std::string
to_string_stub( std::pair<T,U> const & x, Stub s )
{
return std::string("(") + to_string_stub(x.first,s) + ',' + to_string_stub(x.second,s) + ')';
}
}
#if defined(_MSC_VER) && !defined(BOOST_EXCEPTION_ENABLE_WARNINGS)