Remove select1st (GNU extension), replace it by a call to boost::bind