assert_vc8.hpp 556 B

12345678910111213141516171819202122232425262728
  1. // Copyright Robin Linden 2018
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. // See http://www.boost.org/libs/mpl for documentation.
  8. // $Id$
  9. // $Date$
  10. // $Revision$
  11. // Part of a test to demonstrate a linking error with
  12. // BOOST_MPL_ASSERT_MSG inside of functions under VC++8.
  13. #include <boost/mpl/assert.hpp>
  14. template<class T>
  15. bool func()
  16. {
  17. BOOST_MPL_ASSERT_MSG(
  18. true,
  19. ALWAYS_TRUE,
  20. (T));
  21. return true;
  22. }