diff options
author | Francis Dupont <fdupont@isc.org> | 2020-07-31 20:36:27 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomek@isc.org> | 2020-08-13 15:54:14 +0200 |
commit | 0680e3e01c14fd44441c3614343c8b952f6797b2 (patch) | |
tree | 7f4e0afa6bc91ccfb4759315d58e9d59dc537771 /src/bin/dhcp6/tests | |
parent | [#1308] Less _1 ambiguities (diff) | |
download | kea-0680e3e01c14fd44441c3614343c8b952f6797b2.tar.xz kea-0680e3e01c14fd44441c3614343c8b952f6797b2.zip |
[#1308] No _1 ambiguities
Diffstat (limited to 'src/bin/dhcp6/tests')
-rw-r--r-- | src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc index dd5a5b413a..c0ac48da0f 100644 --- a/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc +++ b/src/bin/dhcp6/tests/ctrl_dhcp6_srv_unittest.cc @@ -41,7 +41,6 @@ #include <unistd.h> using namespace std; -using namespace std::placeholders; using namespace isc; using namespace isc::asiolink; using namespace isc::config; @@ -52,6 +51,7 @@ using namespace isc::hooks; using namespace isc::stats; using namespace isc::test; using namespace isc::util; +namespace ph = std::placeholders; namespace { @@ -1558,7 +1558,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, longCommand) { ASSERT_NO_THROW( CommandMgr::instance().registerCommand("foo", std::bind(&CtrlChannelDhcpv6SrvTest::longCommandHandler, - command.str(), _1, _2)); + command.str(), ph::_1, ph::_2)); ); createUnixChannelServer(); @@ -1616,7 +1616,7 @@ TEST_F(CtrlChannelDhcpv6SrvTest, longResponse) { // of a desired size. ASSERT_NO_THROW( CommandMgr::instance().registerCommand("foo", - std::bind(&CtrlChannelDhcpv6SrvTest::longResponseHandler, _1, _2)); + std::bind(&CtrlChannelDhcpv6SrvTest::longResponseHandler, ph::_1, ph::_2)); ); createUnixChannelServer(); |