template <class T>
void foo()
{
  try {}
  catch(T e) {}
}


syntax highlighted by Code2HTML, v. 0.9.1