Avoid including <boost/container/detail/config_begin.hpp> in tests to catch all possible warnings.

This commit is contained in:
Ion Gaztañaga
2020-10-25 17:25:39 +01:00
parent 63073ab556
commit 3cd08df6fc
8 changed files with 42 additions and 84 deletions
-3
View File
@@ -7,8 +7,6 @@
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp>
//[doc_custom_tree
#include <boost/container/set.hpp>
@@ -66,4 +64,3 @@ int main ()
return 0;
}
//]
#include <boost/container/detail/config_end.hpp>
+1 -3
View File
@@ -7,8 +7,7 @@
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp>
//[doc_emplace
#include <boost/container/list.hpp>
#include <cassert>
@@ -41,4 +40,3 @@ int main ()
return 0;
}
//]
#include <boost/container/detail/config_end.hpp>
+1 -3
View File
@@ -7,8 +7,7 @@
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp>
//[doc_extended_allocators
#include <boost/container/vector.hpp>
#include <boost/container/flat_set.hpp>
@@ -51,4 +50,3 @@ int main ()
return 0;
}
//]
#include <boost/container/detail/config_end.hpp>
+1 -3
View File
@@ -7,8 +7,7 @@
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp>
//[doc_move_containers
#include <boost/container/vector.hpp>
#include <boost/move/utility_core.hpp>
@@ -51,4 +50,3 @@ int main ()
return 0;
}
//]
#include <boost/container/detail/config_end.hpp>
+1 -3
View File
@@ -7,8 +7,7 @@
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp>
//[doc_recursive_containers
#include <boost/container/vector.hpp>
#include <boost/container/stable_vector.hpp>
@@ -70,4 +69,3 @@ int main()
return 0;
}
//]
#include <boost/container/detail/config_end.hpp>
+1 -4
View File
@@ -7,8 +7,7 @@
// See http://www.boost.org/libs/container for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#include <boost/container/detail/config_begin.hpp>
#include <boost/container/detail/workaround.hpp>
//[doc_type_erasure_MyClassHolder_h
#include <boost/container/vector.hpp>
@@ -87,5 +86,3 @@ const MyClass & MyClassHolder::GetLastObject() const
{ return vector_.back(); }
//]
#include <boost/container/detail/config_end.hpp>