Javier del Valle

std::runtime_error problems

Discussion created by Javier del Valle on Jun 14, 2006
Latest reply on Jun 18, 2006 by CompilerGuru
I am having problems with this:
std::string error_info = "Hello";
std::runtime_error(error_info) --> this doesn't compile
but this:
std::runtime_error("Hello") --> compile ok.
Does anyone know why??
Thanks a lot and best regards,