forked from boostorg/function
1 parent
f3a164eaeb
commit
ac731c96bb
2 files changed
+22
No files matched your search
@@ -93,3 +93,5 @@ run contains2_test.cpp : : : <rtti>off <toolset>gcc-4.4,<cxxstd>0x:<build>no : c
|
|||||||
|
|
||||||
run contains3_test.cpp ;
|
run contains3_test.cpp ;
|
||||||
run contains3_test.cpp : : : <rtti>off <toolset>gcc-4.4,<cxxstd>0x:<build>no : contains3_test_no_rtti ;
|
run contains3_test.cpp : : : <rtti>off <toolset>gcc-4.4,<cxxstd>0x:<build>no : contains3_test_no_rtti ;
|
||||||
|
|
||||||
|
compile issue_53.cpp ;
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
// Copyright 2024 Peter Dimov
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
//
|
||||||
|
// https://github.com/boostorg/function/issues/53
|
||||||
|
|
||||||
|
#include <boost/bind/apply.hpp>
|
||||||
|
#include <boost/bind/bind.hpp>
|
||||||
|
#include <boost/function.hpp>
|
||||||
|
|
||||||
|
int TestArg( int, double )
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void f()
|
||||||
|
{
|
||||||
|
boost::function<int(int)> fn = boost::bind( &TestArg, boost::placeholders::_1, 1.0 );
|
||||||
|
}
|
||||||
Reference in new issue
Block a user