Compile error for deprecated header boost/functional/detail/container_fwd.hpp.

[SVN r79652]
This commit is contained in:
Daniel James
2012-07-22 07:15:34 +00:00
parent 5ebe3ad87d
commit 92fe67f714
3 changed files with 2 additions and 27 deletions

View File

@@ -7,21 +7,4 @@
// This header is deprecated, I'll change the warning to an error in a future // This header is deprecated, I'll change the warning to an error in a future
// release, and then later remove the header completely. // release, and then later remove the header completely.
#if !defined(BOOST_FUNCTIONAL_DETAIL_CONTAINER_FWD_HPP) #error "boost/functional/detail/container_fwd.hpp is deprecated, use boost/detail/container_fwd.hpp instead."
#define BOOST_FUNCTIONAL_DETAIL_CONTAINER_FWD_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
#if defined(__EDG__)
#elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
#pragma message("Warning: boost/functional/detail/container_fwd.hpp is deprecated, use boost/detail/container_fwd.hpp instead.")
#elif defined(__GNUC__) || defined(__HP_aCC) || \
defined(__SUNPRO_CC) || defined(__IBMCPP__)
#warning "boost/functional/detail/container_fwd.hpp is deprecated, use boost/detail/container_fwd.hpp instead."
#endif
#include <boost/detail/container_fwd.hpp>
#endif

View File

@@ -51,7 +51,7 @@ test-suite functional/hash
[ run implicit_test.cpp ] [ run implicit_test.cpp ]
[ run hash_no_ext_macro_1.cpp ] [ run hash_no_ext_macro_1.cpp ]
[ run hash_no_ext_macro_2.cpp ] [ run hash_no_ext_macro_2.cpp ]
[ compile deprecated_container_fwd.cpp ] [ compile-fail deprecated_container_fwd.cpp ]
; ;
test-suite functional/hash_no_ext test-suite functional/hash_no_ext

View File

@@ -4,11 +4,3 @@
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/functional/detail/container_fwd.hpp> #include <boost/functional/detail/container_fwd.hpp>
typedef std::vector<int, std::allocator<int> > int_vector;
#include <vector>
int main() {
int_vector x;
}