mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-13 09:46:10 +00:00
quenched -pendantic warnings (closes #167)
This commit is contained in:
@@ -50,9 +50,11 @@ public:
|
||||
|
||||
virtual bool run_bool() {
|
||||
PYBIND11_OVERLOAD_PURE(
|
||||
bool,
|
||||
Example12,
|
||||
run_bool
|
||||
bool, /* Return type */
|
||||
Example12, /* Parent class */
|
||||
run_bool, /* Name of function */
|
||||
/* 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");
|
||||
}
|
||||
@@ -61,8 +63,9 @@ public:
|
||||
PYBIND11_OVERLOAD_PURE(
|
||||
void, /* Return type */
|
||||
Example12, /* Parent class */
|
||||
pure_virtual /* Name of function */
|
||||
/* This function has no arguments */
|
||||
pure_virtual, /* Name of function */
|
||||
/* This function has no arguments. The trailing comma
|
||||
in the previous line is needed for some compilers */
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user