Skip to content

Commit 8be9a62

Browse files
committed
test_limit_reference.cc: Don't use auto where a slot is required
The return values of sigc::bind() and sigc::bind_return() shall be converted to sigc::slot, otherwise automatic disconnection does not work. Fixes #44
1 parent 1496ebb commit 8be9a62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_limit_reference.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ int main(int argc, char* argv[])
4444
handler();
4545
util->check_result(result_stream, "method()");
4646

47-
auto param =
47+
sigc::slot<void> param =
4848
sigc::bind(sigc::slot<void, Derived&>(), std::ref(*instance));
4949
param();
5050
util->check_result(result_stream, "");
5151

52-
auto ret =
52+
sigc::slot<Derived> ret =
5353
sigc::bind_return(sigc::slot<void>(), std::ref(*instance));
5454
ret();
5555
util->check_result(result_stream, "");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy