Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53049 - in branches/release: . tools/inspect
From: daniel_james_at_[hidden]
Date: 2009-05-16 10:37:02


Author: danieljames
Date: 2009-05-16 10:37:01 EDT (Sat, 16 May 2009)
New Revision: 53049
URL: http://svn.boost.org/trac/boost/changeset/53049

Log:
Merge inspect fix for when there are no errors.

Merged revisions 52995 via svnmerge from
https://svn.boost.org/svn/boost/trunk

........
  r52995 | jewillco | 2009-05-14 15:50:56 +0100 (Thu, 14 May 2009) | 1 line
  
  Fixes #2963
........

Properties modified:
   branches/release/ (props changed)
Text files modified:
   branches/release/tools/inspect/inspect.cpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: branches/release/tools/inspect/inspect.cpp
==============================================================================
--- branches/release/tools/inspect/inspect.cpp (original)
+++ branches/release/tools/inspect/inspect.cpp 2009-05-16 10:37:01 EDT (Sat, 16 May 2009)
@@ -450,6 +450,10 @@
 
   void worst_offenders_count()
   {
+ if ( msgs.empty() )
+ {
+ return;
+ }
     string current_library( msgs.begin()->library );
     int err_count = 0;
     for ( error_msg_vector::iterator itr ( msgs.begin() );


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