书上的例子,如何编译通不过

书上的例子,怎么编译通不过。
很熟悉吧。书上的例子,怎么编译通不过。
error C2664: “fn”: 不能将参数 1 从“std::basic_string<_Elem,_Traits,_Ax>”转换为“Student &”
#include <iostream>
#include<string>
using namespace std;
class Student{
string name;
public:
Student(const string& s1 ):name(s1){}

};
void fn(Student& s){
cout<<"ok!";
}
int main(){
fn(string("xyy"));
system("pause");
return 1;
}

------解决方案--------------------
class Student{
    string name;
public:
    Student(std::string ){}
    Student(const string& s1 ):name(s1){}

};

------解决方案--------------------
明显的类型不符合
------解决方案--------------------
int main(){
fn(Student("xyy"));
system("pause");
return 1;
}
------解决方案--------------------
int main(){
fn(Student("xyy"));
system("pause");
return 1;
}