dtp.hpp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
  2. #define BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED
  3. // Copyright Aleksey Gurtovoy 2001-2004
  4. //
  5. // Distributed under the Boost Software License, Version 1.0.
  6. // (See accompanying file LICENSE_1_0.txt or copy at
  7. // http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/mpl for documentation.
  10. // $Id$
  11. // $Date$
  12. // $Revision$
  13. #include <boost/mpl/aux_/config/workaround.hpp>
  14. // MWCW 7.x-8.0 "losts" default template parameters of nested class
  15. // templates when their owner classes are passed as arguments to other
  16. // templates; Borland 5.5.1 "forgets" them from the very beginning (if
  17. // the owner class is a class template), and Borland 5.6 isn't even
  18. // able to compile a definition of nested class template with DTP
  19. #if !defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
  20. && !defined(BOOST_MPL_PREPROCESSING_MODE) \
  21. && BOOST_WORKAROUND(__BORLANDC__, >= 0x560) \
  22. && BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610))
  23. # define BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
  24. #endif
  25. #if !defined(BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
  26. && !defined(BOOST_MPL_PREPROCESSING_MODE) \
  27. && ( BOOST_WORKAROUND(__MWERKS__, <= 0x3001) \
  28. || BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) \
  29. || defined(BOOST_MPL_CFG_NO_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES) \
  30. )
  31. # define BOOST_MPL_CFG_BROKEN_DEFAULT_PARAMETERS_IN_NESTED_TEMPLATES
  32. #endif
  33. #endif // BOOST_MPL_AUX_CONFIG_DTP_HPP_INCLUDED