Changeset 8351 for code/trunk/src/external/cpptcl/cpptcl.cc
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/external/cpptcl/cpptcl.cc
r5781 r8351 17 17 using namespace Tcl::details; 18 18 using namespace std; 19 using namespace boost; 19 // boost::shared_ptr conflicts with the new std::shared_ptr 20 //using namespace boost; 20 21 21 22 … … 167 168 168 169 // map of polymorphic callbacks 169 typedef map<string, shared_ptr<callback_base> > callback_interp_map;170 typedef map<string, boost::shared_ptr<callback_base> > callback_interp_map; 170 171 typedef map<Tcl_Interp *, callback_interp_map> callback_map; 171 172 … … 180 181 181 182 // map of object handlers 182 typedef map<string, shared_ptr<class_handler_base> > class_interp_map;183 typedef map<string, boost::shared_ptr<class_handler_base> > class_interp_map; 183 184 typedef map<Tcl_Interp *, class_interp_map> class_handlers_map; 184 185 … … 491 492 492 493 void class_handler_base::register_method(string const &name, 493 shared_ptr<object_cmd_base> ocb, policies const &p)494 boost::shared_ptr<object_cmd_base> ocb, policies const &p) 494 495 { 495 496 methods_[name] = ocb; … … 990 991 991 992 void interpreter::add_function(string const &name, 992 shared_ptr<callback_base> cb, policies const &p)993 boost::shared_ptr<callback_base> cb, policies const &p) 993 994 { 994 995 Tcl_CreateObjCommand(interp_, name.c_str(), … … 1000 1001 1001 1002 void interpreter::add_class(string const &name, 1002 shared_ptr<class_handler_base> chb)1003 boost::shared_ptr<class_handler_base> chb) 1003 1004 { 1004 1005 class_handlers[interp_][name] = chb; … … 1006 1007 1007 1008 void interpreter::add_constructor(string const &name, 1008 shared_ptr<class_handler_base> chb,shared_ptr<callback_base> cb,1009 boost::shared_ptr<class_handler_base> chb, boost::shared_ptr<callback_base> cb, 1009 1010 policies const &p) 1010 1011 {
Note: See TracChangeset
for help on using the changeset viewer.