object of abstract class type “Connection” is not allowed

前端 未结 3 873
终归单人心
终归单人心 2021-01-21 03:59
class Connection
{
public:
  typedef boost::shared_ptr pointer;
  static pointer create(boost::asio::io_service& io_service){return pointer(new Con         


        
3条回答
  •  悲&欢浪女
    2021-01-21 04:34

    You an use it, but not until it is implemented in some derived class.

    You cannot create objects of abstract classes, because not all functions are implemented.

提交回复
热议问题