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

@ -19,10 +19,7 @@ typedef boost::error_info<struct test_tag2,int> tagged_int2;
std::string
to_string( tagged_int2 const & x )
{
if( x.value()==42 )
return "fourty-two";
else
return "bad value";
return '[' +boost::error_info_name(x) + "] = " + (x.value()==42 ? "fourty-two" : "bad value");
}
struct