C
Cheng Mo
Below code cannot be compiled.
try
{
throw std::string;
}
catch(...)
{
}
While below is correct.
try
{
throw std::string();
}
catch(...)
{
}
Why doesn't standard C++ parse "throw std::string" as "throw
std::string()"?
try
{
throw std::string;
}
catch(...)
{
}
While below is correct.
try
{
throw std::string();
}
catch(...)
{
}
Why doesn't standard C++ parse "throw std::string" as "throw
std::string()"?