added [[noreturn]] attribute to pybind11_fail

This commit is contained in:
Wenzel Jakob
2016-04-30 23:55:44 +02:00
parent 87810d8e91
commit fc92d82bba
2 changed files with 2 additions and 3 deletions

View File

@@ -56,7 +56,6 @@ public:
/* This function has no arguments. The trailing comma
in the previous line is needed for some compilers */
);
throw std::runtime_error("this will never be reached");
}
virtual void pure_virtual() {