Problem when using string::at()

Hello, I am using root v5.22 and the following simple code can not run,
when loading it and run it with

.L test.c
main()

always get the following error message:

Error: Can't call string::at(8) in current scope test.c:7: Possible candidates are... Error: << Illegal operator for pointer 3 test.c:7: (class G__CINT_ENDL)9768368 *** Interpreter error recovered ***
Help please!

#include <iostream>
using namespace std;
int main(){
 string te = "test here";
 cout<<te.at(8)<<" "<<te.length()<<endl;
}

Thanks,
Wei

Hi,

thanks for you report! The dictionary for string::at() is now available in the trunk.

Cheers, Axel.