no matching function for call to `std::basic_ofstream<char, std::char_traits<char> >::basic_ofstream(std::string&)'

Je suis en train d'écrire un programme qui demande à l'utilisateur un nom de fichier et puis il ouvre ce fichier. Quand je compile, je reçois le message d'erreur suivant:

no matching function for call to std::basic_ofstream<char, 
std::char_traits<char> >::basic_ofstream(std::string&)

C'est mon code:

using namespace std;

int main()
{ 
    string asegurado;
    cout << "Nombre a agregar: ";
    cin >> asegurado;

    ofstream entrada(asegurado,"");
    if (entrada.fail())
    {
        cout << "El archivo no se creo correctamente" << endl;
    }
}      
InformationsquelleAutor ToM MaC | 2016-01-27