Replace boost::lexical_cast with std::to_string, std::stoi.