please notice that your compiler allow you to use functions with different parameters types into declaration

 typedef std::function< void ( minute_calculator::container_minute_data_ptr ) > callback_type; don't have reference mark (&)

but [&](minute_calculator::container_minute_data_ptr &data_ptr) have it