In my code i have written:

std::ifstream stm;
	stm.str("str100");
	double d;
	stm >> d;

and an error comes up saying that:

'str' : is not a member of 'std::basic_ifstream<_Elem,_Traits>'
       with
       [
        _Elem=char,
        _Traits=std::char_traits<char>
    ]

What should i do?