Ignore:
Timestamp:
Sep 18, 2017 7:10:11 AM (7 years ago)
Author:
nanang
Message:

Misc (re #1994): Fixed compile error in pjsua2_demo.cpp due to unrecognized 'unique_ptr'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp

    r5646 r5650  
    1919#include <pjsua2.hpp> 
    2020#include <iostream> 
    21 #include <memory> 
    2221#include <pj/file_access.h> 
    2322 
     
    129128    acc_cfg.sipConfig.authCreds.push_back( AuthCredInfo("digest", "*", 
    130129                                                        "test1", 0, "test1") ); 
    131     std::unique_ptr<MyAccount> acc(new MyAccount); 
     130    MyAccount *acc(new MyAccount); 
    132131    acc->create(acc_cfg); 
    133132     
     
    149148    // Destroy library 
    150149    std::cout << "*** PJSUA2 SHUTTING DOWN ***" << std::endl; 
     150    delete call; 
     151    delete acc; 
    151152} 
    152153 
     
    308309    AccountConfig acc_cfg; 
    309310    acc_cfg.idUri = "sip:localhost"; 
    310     std::unique_ptr<MyAccount> acc(new MyAccount); 
     311    MyAccount *acc(new MyAccount); 
    311312    acc->create(acc_cfg); 
    312313 
     
    318319    std::cout << "Press ENTER to quit..." << std::endl; 
    319320    std::cin.get(); 
     321 
     322    delete acc; 
    320323} 
    321324 
Note: See TracChangeset for help on using the changeset viewer.