Пример #1
0
	User* User::Clone()
	{ 
		mongo::BSONObj  obj;
		ToBson(obj);
		User* pNew = new User();
		pNew->FromBson(obj);
		return pNew;
	}