Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-06-21 17:08:53


Author: danieljames
Date: 2008-06-21 17:08:53 EDT (Sat, 21 Jun 2008)
New Revision: 46592
URL: http://svn.boost.org/trac/boost/changeset/46592

Log:
Prevent inspect errors for unnamed namespaces in some of the test header files.
Text files modified:
   branches/unordered/trunk/libs/unordered/test/helpers/count.hpp | 5 +++++
   branches/unordered/trunk/libs/unordered/test/helpers/equivalent.hpp | 5 +++++
   branches/unordered/trunk/libs/unordered/test/objects/test.hpp | 5 +++++
   3 files changed, 15 insertions(+), 0 deletions(-)

Modified: branches/unordered/trunk/libs/unordered/test/helpers/count.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/helpers/count.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/helpers/count.hpp 2008-06-21 17:08:53 EDT (Sat, 21 Jun 2008)
@@ -53,6 +53,11 @@
     struct globally_counted_object
         : counted_object<globally_counted_object> {};
 
+ // This won't be a problem as I'm only using a single compile unit
+ // in each test (this is actually require by the minimal test
+ // framework).
+ //
+ // boostinspect:nounnamed
     namespace {
         object_count& global_object_count = globally_counted_object::count_;
     }

Modified: branches/unordered/trunk/libs/unordered/test/helpers/equivalent.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/helpers/equivalent.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/helpers/equivalent.hpp 2008-06-21 17:08:53 EDT (Sat, 21 Jun 2008)
@@ -44,6 +44,11 @@
         }
     };
 
+ // This won't be a problem as I'm only using a single compile unit
+ // in each test (this is actually require by the minimal test
+ // framework).
+ //
+ // boostinspect:nounnamed
     namespace {
         equivalent_type equivalent;
     }

Modified: branches/unordered/trunk/libs/unordered/test/objects/test.hpp
==============================================================================
--- branches/unordered/trunk/libs/unordered/test/objects/test.hpp (original)
+++ branches/unordered/trunk/libs/unordered/test/objects/test.hpp 2008-06-21 17:08:53 EDT (Sat, 21 Jun 2008)
@@ -156,6 +156,11 @@
 
     namespace detail
     {
+ // This won't be a problem as I'm only using a single compile unit
+ // in each test (this is actually require by the minimal test
+ // framework).
+ //
+ // boostinspect:nounnamed
         namespace {
             test::detail::memory_tracker<std::allocator<int> > tracker;
         }


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