no_part_spec_def_args_fail.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. // This file was automatically generated on Mon Apr 21 12:40:41 2008
  2. // by libs/config/tools/generate.cpp
  3. // Copyright John Maddock 2002-4.
  4. // Use, modification and distribution are subject to the
  5. // Boost Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // See http://www.boost.org/libs/config for the most recent version.//
  8. // Revision $Id: generate.cpp 44422 2008-04-14 18:06:59Z johnmaddock $
  9. //
  10. // Test file for macro BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS
  11. // This file should not compile, if it does then
  12. // BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS should not be defined.
  13. // See file boost_no_part_spec_def_args.ipp for details
  14. // Must not have BOOST_ASSERT_CONFIG set; it defeats
  15. // the objective of this file:
  16. #ifdef BOOST_ASSERT_CONFIG
  17. # undef BOOST_ASSERT_CONFIG
  18. #endif
  19. #include <boost/config.hpp>
  20. #include "test.hpp"
  21. #ifdef BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS
  22. #include "boost_no_part_spec_def_args.ipp"
  23. #else
  24. #error "this file should not compile"
  25. #endif
  26. int main( int, char *[] )
  27. {
  28. return boost_no_partial_specialization_implicit_default_args::test();
  29. }