Added verbose parameter to boost::diagnostic_information.

[SVN r82179]
This commit is contained in:
Emil Dotchevski
2012-12-23 03:31:48 +00:00
parent 2ebfd49b4f
commit 9b100b0c9d
17 changed files with 3811 additions and 4014 deletions

View File

@ -24,10 +24,18 @@ boost
{
template <class Tag,class T>
inline
typename enable_if<has_to_string<T>,std::string>::type
std::string
error_info_name( error_info<Tag,T> const & x )
{
return tag_type_name<Tag>();
}
template <class Tag,class T>
inline
std::string
to_string( error_info<Tag,T> const & x )
{
return to_string(x.value());
return '[' + error_info_name(x) + "] = " + to_string_stub(x.value()) + '\n';
}
template <class Tag,class T>
@ -49,16 +57,7 @@ boost
inline
std::string
error_info<Tag,T>::
tag_typeid_name() const
{
return tag_type_name<Tag>();
}
template <class Tag,class T>
inline
std::string
error_info<Tag,T>::
value_as_string() const
name_value_string() const
{
return to_string_stub(*this);
}
@ -114,7 +113,7 @@ boost
for( error_info_map::const_iterator i=info_.begin(),end=info_.end(); i!=end; ++i )
{
error_info_base const & x = *i->second;
tmp << '[' << x.tag_typeid_name() << "] = " << x.value_as_string() << '\n';
tmp << x.name_value_string();
}
tmp.str().swap(diagnostic_info_str_);
}