mirror of
https://github.com/boostorg/function.git
synced 2025-06-25 03:51:38 +02:00
@ -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 : : : <rtti>off <toolset>gcc-4.4,<cxxstd>0x:<build>no : contains3_test_no_rtti ;
|
||||
|
||||
compile issue_53.cpp ;
|
||||
|
20
test/issue_53.cpp
Normal file
20
test/issue_53.cpp
Normal file
@ -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