mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Taking a function pointer on a base member protected function is actually invalid.
This could work with a pointer on the derived class member function, that is &derived::method instead of &base::method however there is no way to pass the derived class from MOCK_BASE_CLASS to the mock::detail::base helper if template classes are to be supported.
Anyway the now documented workaround is simple enough and the same as for private member functions.
As a side note the changes from
|
||
|---|---|---|
| .. | ||
| calculator.hpp | ||
| customization.cpp | ||
| getting_started.cpp | ||
| limitations_comma_in_macro.cpp | ||
| limitations_const_parameter_warning.cpp | ||
| limitations_literal_zero.cpp | ||
| limitations_non_virtual_method.cpp | ||
| limitations_protected_private_method.cpp | ||
| limitations_template_base_class_method.cpp | ||
| limitations_template_method.cpp | ||
| limitations_throw_specifier.cpp | ||
| mock_view.hpp | ||
| motivation.cpp | ||
| patterns_async_call.cpp | ||
| patterns_invoke_functor.cpp | ||
| patterns_quick_constraint.cpp | ||
| patterns_retrieve_cref.cpp | ||
| patterns_static_objects.cpp | ||
| rationale.cpp | ||
| reference.cpp | ||
| view.hpp | ||