Hello, Texus.
There is a question in my heart for some times.
button->connect("pressed", print, std::bind(getValue));
I think this is too loose. I wish it be more strict.
See this will work too:
button->connect("pressed", print, std::bind(getValue)());
auto f = std::bind(getValue);
f is a function.
f() is a value.
We should pass a value as a parameter to print, right? Both will work. But the second one is more strict which is what I wish.