From ac731c96bbabc8537a3c1276caa41499b5274d70 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 12 Oct 2024 21:32:25 +0300 Subject: [PATCH] Add test for #53. Refs #53. --- test/Jamfile.v2 | 2 ++ test/issue_53.cpp | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/issue_53.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 67bbe1f..22c3ebf 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -93,3 +93,5 @@ run contains2_test.cpp : : : off gcc-4.4,0x:no : c run contains3_test.cpp ; run contains3_test.cpp : : : off gcc-4.4,0x:no : contains3_test_no_rtti ; + +compile issue_53.cpp ; diff --git a/test/issue_53.cpp b/test/issue_53.cpp new file mode 100644 index 0000000..45e00d9 --- /dev/null +++ b/test/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 +#include +#include + +int TestArg( int, double ) +{ + return 0; +} + + +void f() +{ + boost::function fn = boost::bind( &TestArg, boost::placeholders::_1, 1.0 ); +}