Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2016, 10:29:21 PM (8 years ago)
Author:
landauf
Message:

merged branch cpp11_v3 back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/external/cpptcl/cpptcl.cc

    r8351 r11071  
    1717using namespace Tcl::details;
    1818using namespace std;
    19 // boost::shared_ptr conflicts with the new std::shared_ptr
    20 //using namespace boost;
    21 
    2219
    2320result::result(Tcl_Interp *interp) : interp_(interp) {}
     
    168165
    169166// map of polymorphic callbacks
    170 typedef map<string, boost::shared_ptr<callback_base> > callback_interp_map;
     167typedef map<string, std::shared_ptr<callback_base> > callback_interp_map;
    171168typedef map<Tcl_Interp *, callback_interp_map> callback_map;
    172169
     
    181178
    182179// map of object handlers
    183 typedef map<string, boost::shared_ptr<class_handler_base> > class_interp_map;
     180typedef map<string, std::shared_ptr<class_handler_base> > class_interp_map;
    184181typedef map<Tcl_Interp *, class_interp_map> class_handlers_map;
    185182
     
    492489
    493490void class_handler_base::register_method(string const &name,
    494      boost::shared_ptr<object_cmd_base> ocb, policies const &p)
     491     std::shared_ptr<object_cmd_base> ocb, policies const &p)
    495492{
    496493     methods_[name] = ocb;
     
    991988
    992989void interpreter::add_function(string const &name,
    993      boost::shared_ptr<callback_base> cb, policies const &p)
     990     std::shared_ptr<callback_base> cb, policies const &p)
    994991{
    995992     Tcl_CreateObjCommand(interp_, name.c_str(),
     
    1001998
    1002999void interpreter::add_class(string const &name,
    1003      boost::shared_ptr<class_handler_base> chb)
     1000     std::shared_ptr<class_handler_base> chb)
    10041001{
    10051002     class_handlers[interp_][name] = chb;
     
    10071004
    10081005void interpreter::add_constructor(string const &name,
    1009      boost::shared_ptr<class_handler_base> chb, boost::shared_ptr<callback_base> cb,
     1006     std::shared_ptr<class_handler_base> chb, std::shared_ptr<callback_base> cb,
    10101007     policies const &p)
    10111008{
Note: See TracChangeset for help on using the changeset viewer.