Ticket #2560: bf.cxx

File bf.cxx, 250 bytes (added by Václav Haisman <v.haisman@…>, 14 years ago)

test case

Line 
1#include <boost/function.hpp>
2#include <boost/function_equal.hpp>
3
4typedef boost::function<void (int)> func_type;
5
6bool
7cmp (func_type f)
8{
9 return f == func_type ();
10}
11
12
13bool
14cmp2 (func_type f)
15{
16 return boost::function_equal (f, func_type ());
17}