You can use make_pair here instead, which will maybe save you the template arguments.

Also, I think that folly::to<int> might be better than atoi, as it'll handle errors better (and be a little more obvious).