August 2017
Intermediate to advanced
438 pages
14h 19m
English
The Boost.Utility library provides a quick solution for such cases. Solution is called the boost::base_from_member template. To use it, you need to carry out the following steps:
#include <boost/utility/base_from_member.hpp>
class fake_tasks_processor_fixed : boost::base_from_member<std::ostringstream> , public tasks_processor
{ typedef boost::base_from_member<std::ostringstream> logger_t; virtual void do_process() ...Read now
Unlock full access