Skip to content

Commit ac731c9

Browse files
committed
Add test for #53. Refs #53.
1 parent f3a164e commit ac731c9

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

test/Jamfile.v2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,5 @@ run contains2_test.cpp : : : <rtti>off <toolset>gcc-4.4,<cxxstd>0x:<build>no : c
9393

9494
run contains3_test.cpp ;
9595
run contains3_test.cpp : : : <rtti>off <toolset>gcc-4.4,<cxxstd>0x:<build>no : contains3_test_no_rtti ;
96+
97+
compile issue_53.cpp ;

test/issue_53.cpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2024 Peter Dimov
2+
// Distributed under the Boost Software License, Version 1.0.
3+
// https://www.boost.org/LICENSE_1_0.txt
4+
//
5+
// https://github.com/boostorg/function/issues/53
6+
7+
#include <boost/bind/apply.hpp>
8+
#include <boost/bind/bind.hpp>
9+
#include <boost/function.hpp>
10+
11+
int TestArg( int, double )
12+
{
13+
return 0;
14+
}
15+
16+
17+
void f()
18+
{
19+
boost::function<int(int)> fn = boost::bind( &TestArg, boost::placeholders::_1, 1.0 );
20+
}

0 commit comments

Comments
 (0)