Ticket #3675: boost-bug.cpp

File boost-bug.cpp, 290 bytes (added by Aristid Breitkreuz <aristid.breitkreuz@…>, 13 years ago)

Code that SHOULD work on all platforms, but doesn't

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