From d6e254a03bc9fc68660405f689c35d86766749c3 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 27 Jan 2010 19:32:39 +0000 Subject: [PATCH] Don't foward declare containers when using gcc's parallel library and add a macro to disable forward declaration. Fixes #3866. [SVN r59282] --- hash/test/Jamfile.v2 | 1 + hash/test/container_no_fwd_test.cpp | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 hash/test/container_no_fwd_test.cpp diff --git a/hash/test/Jamfile.v2 b/hash/test/Jamfile.v2 index 9c428b0..13a29a9 100644 --- a/hash/test/Jamfile.v2 +++ b/hash/test/Jamfile.v2 @@ -47,6 +47,7 @@ test-suite functional/hash : gcc:_GLIBCXX_DEBUG darwin:_GLIBCXX_DEBUG : container_fwd_gcc_debug ] + [ run container_no_fwd_test.cpp ] [ compile-fail hash_no_ext_fail_test.cpp ] [ compile-fail namespace_fail_test.cpp ] [ run hash_no_ext_macro_1.cpp ] diff --git a/hash/test/container_no_fwd_test.cpp b/hash/test/container_no_fwd_test.cpp new file mode 100644 index 0000000..cc6f6fa --- /dev/null +++ b/hash/test/container_no_fwd_test.cpp @@ -0,0 +1,14 @@ + +// Copyright 2010 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) + +#define BOOST_DETAIL_NO_CONTAINER_FWD + +#include + +int main() +{ + std::set x; + std::vector y; +} \ No newline at end of file