function_test_fail1.cpp 443 B

123456789101112131415161718
  1. // Boost.Function library
  2. // Copyright (C) Douglas Gregor 2001-2005. Use, modification and
  3. // distribution is subject to the Boost Software License, Version
  4. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. // For more information, see http://www.boost.org
  7. #include <boost/function.hpp>
  8. void test()
  9. {
  10. boost::function0<int> f1;
  11. boost::function0<int> f2;
  12. if( f1 == f2 ) {}
  13. }