Merge inspect fixes for the unordered library.

Merged revisions 46470-46592 via svnmerge from 
https://svn.boost.org/svn/boost/branches/unordered/trunk

................
  r46589 | danieljames | 2008-06-21 21:37:42 +0100 (Sat, 21 Jun 2008) | 2 lines
  
  Fix some inspect errors (tabs and missing copyright/license).
................
  r46591 | danieljames | 2008-06-21 21:47:51 +0100 (Sat, 21 Jun 2008) | 1 line
  
  Move memory.hpp into the helpers subdirectory.
................
  r46592 | danieljames | 2008-06-21 22:08:53 +0100 (Sat, 21 Jun 2008) | 1 line
  
  Prevent inspect errors for unnamed namespaces in some of the test header files.
................


[SVN r46594]
This commit is contained in:
Daniel James
2008-06-21 22:02:15 +00:00
parent ebd75b4010
commit 8868fa4687
8 changed files with 118 additions and 93 deletions

View File

@@ -1,3 +1,8 @@
<!--
Copyright Daniel James 2008
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-->
<section id="unordered.bibliography"> <section id="unordered.bibliography">
<title>Bibliography</title> <title>Bibliography</title>
<bibliography> <bibliography>

View File

@@ -1,4 +1,9 @@
// See: http://www.isthe.com/chongo/tech/comp/fnv/
// Copyright 2008 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Algorithm from: http://www.isthe.com/chongo/tech/comp/fnv/
#include <string> #include <string>

View File

@@ -53,6 +53,11 @@ namespace test {
struct globally_counted_object struct globally_counted_object
: counted_object<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 { namespace {
object_count& global_object_count = globally_counted_object::count_; object_count& global_object_count = globally_counted_object::count_;
} }

View File

@@ -44,6 +44,11 @@ namespace test
} }
}; };
// 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 { namespace {
equivalent_type equivalent; equivalent_type equivalent;
} }

View File

@@ -14,7 +14,7 @@
#include <new> #include <new>
#include "../helpers/fwd.hpp" #include "../helpers/fwd.hpp"
#include "../helpers/allocator.hpp" #include "../helpers/allocator.hpp"
#include "./memory.hpp" #include "../helpers/memory.hpp"
namespace test namespace test
{ {

View File

@@ -12,7 +12,7 @@
#include <iostream> #include <iostream>
#include "../helpers/fwd.hpp" #include "../helpers/fwd.hpp"
#include "../helpers/count.hpp" #include "../helpers/count.hpp"
#include "./memory.hpp" #include "../helpers/memory.hpp"
#include <map> #include <map>
namespace test namespace test
@@ -156,6 +156,11 @@ namespace test
namespace detail 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 { namespace {
test::detail::memory_tracker<std::allocator<int> > tracker; test::detail::memory_tracker<std::allocator<int> > tracker;
} }