Skip to content

Commit

Permalink
- Forgot some changes for bug #5920
Browse files Browse the repository at this point in the history
- Added testcase for bug #5968, works on gcc 4.6



[SVN r74833]
  • Loading branch information
sithhell committed Oct 9, 2011
1 parent dedcc75 commit 4e64b8e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/boost/phoenix/operator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <boost/phoenix/version.hpp>
#include <boost/phoenix/operator/arithmetic.hpp>
#include <boost/phoenix/operator/bitwise.hpp>
#include <boost/phoenix/operator/comparision.hpp>
#include <boost/phoenix/operator/comparison.hpp>
#include <boost/phoenix/operator/if_else.hpp>
#include <boost/phoenix/operator/self.hpp>
#include <boost/phoenix/operator/logical.hpp>
Expand Down
3 changes: 2 additions & 1 deletion test/Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ test-suite phoenix_boost_bind_compatibility :
test-suite phoenix_regression :
[ run regression/bug4853.cpp ]
[ run regression/bug5626.cpp ]
[ run regression/bug5968.cpp ]
;

test-suite phoenix_include :
Expand Down Expand Up @@ -156,7 +157,7 @@ test-suite phoenix_include :
[ run include/object/static_cast.cpp ]
[ run include/operator/arithmetic.cpp ]
[ run include/operator/bitwise.cpp ]
[ run include/operator/comparision.cpp ]
[ run include/operator/comparison.cpp ]
[ run include/operator/if_else.cpp ]
[ run include/operator/io.cpp ]
[ run include/operator/logical.cpp ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
==============================================================================*/
#include <boost/phoenix/operator/comparision.hpp>
#include <boost/phoenix/operator/comparison.hpp>
int main() {}
20 changes: 20 additions & 0 deletions test/regression/bug5968.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

#include <boost/phoenix.hpp>
#include <boost/signals2.hpp>

struct s
{
bool f(int, bool) { return true; }
};

int main()
{
s s_obj;
boost::signals2::signal<bool (int, bool)> sig;
sig.connect(
boost::phoenix::bind(
&s::f, &s_obj,
boost::phoenix::placeholders::arg1,
boost::phoenix::placeholders::arg2));
}

0 comments on commit 4e64b8e

Please sign in to comment.