First of all, why token iterator? You don't have any marked subexpressions to iterate over.
Second, position() is a member function of a match, so:
#include <string>
#include <iostream>
#include <regex>
int main() {
std::string s = "123 apples 456 oranges 789 bananas oranges bananas";
std::regex r("[a-z]+");
for(std::sregex_iterator i = std::sregex_iterator(s.begin(), s.end(), r);
i != std::sregex_iterator();
++i )
{
std::smatch m = *i;
std::cout << m.str() << " at position " << m.position() << '\n';
}
}
live at coliru: http://coliru.stacked-crooked.com/a/492643ca2b6c5dac