Merge pull request #1652 from medithe/patch-1

Cast the tr1::tuple_element template parameter to int