Allow function constructors to throw a std::runtime_error