Tipo de argumento C ++ para ifstream :: open ()

Que tipo devo criar meu nome de arquivo para usá-lo como argumento paraifstream.open()?

int main(int argc, char *argv[]) {
    string x,y,file;

    string file = argv[1];
    ifstream in;
    in.open(file);
    in >> x;
    in >> y;
    ...

Com este código, recebo o seguinte erro:

main.cpp|20|error: no matching function for call to 'std::basic_ifstream<char,
     std::char_traits<char> >::open(std::string&)'|
gcc\mingw32\4.4.1\include\c++\fstream|525|note: candidates are: void std::basic_ifstream<_CharT,
     _Traits>::open(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]|

ATUALIZAR

i recebo este erro

questionAnswers(1)

yourAnswerToTheQuestion