Ticket #3675: boost-bug.cpp
File boost-bug.cpp, 290 bytes (added by , 13 years ago) |
---|
Line | |
---|---|
1 | #include <boost/parameter.hpp> |
2 | #include <iostream> |
3 | #include <ostream> |
4 | |
5 | void f(int) {} |
6 | |
7 | BOOST_PARAMETER_NAME(par) |
8 | |
9 | BOOST_PARAMETER_FUNCTION( |
10 | (void (*) (int)), |
11 | testfn, |
12 | tag, |
13 | (required (par, *) ) |
14 | ) |
15 | { |
16 | return par; |
17 | } |
18 | |
19 | int main() { |
20 | std::cout << (testfn(f) == f) << std::endl; |
21 | } |