The functionality wasn't removed, just changed. There is a connect function that takes an initializer_list as parameter, so you now have to write the following:
Code (cpp) Select
my_checkbox->connect({"checked", "unchecked"}, [](bool status){ std::cout << status << '\n'; });

