--- cpptcl.cc Fri Apr 22 12:18:47 2011 +++ cpptcl.cc Fri Apr 22 12:20:02 2011 @@ -16,7 +16,8 @@ using namespace Tcl; using namespace Tcl::details; using namespace std; -using namespace boost; +// boost::shared_ptr conflicts with the new std::shared_ptr +//using namespace boost; result::result(Tcl_Interp *interp) : interp_(interp) {} @@ -166,7 +167,7 @@ { // map of polymorphic callbacks -typedef map > callback_interp_map; +typedef map > callback_interp_map; typedef map callback_map; callback_map callbacks; @@ -179,7 +180,7 @@ policies_map call_policies; // map of object handlers -typedef map > class_interp_map; +typedef map > class_interp_map; typedef map class_handlers_map; class_handlers_map class_handlers; @@ -320,7 +321,7 @@ post_process_policies(interp, pol, objv, false); } - catch (exception const &e) + catch (std::exception const &e) { Tcl_SetResult(interp, const_cast(e.what()), TCL_VOLATILE); return TCL_ERROR; @@ -363,7 +364,7 @@ post_process_policies(interp, pol, objv, true); } - catch (exception const &e) + catch (std::exception const &e) { Tcl_SetResult(interp, const_cast(e.what()), TCL_VOLATILE); return TCL_ERROR; @@ -430,7 +431,7 @@ Tcl_GetString(Tcl_GetObjResult(interp)), object_handler, static_cast(chb), 0); } - catch (exception const &e) + catch (std::exception const &e) { Tcl_SetResult(interp, const_cast(e.what()), TCL_VOLATILE); return TCL_ERROR; @@ -490,7 +491,7 @@ } void class_handler_base::register_method(string const &name, - shared_ptr ocb, policies const &p) + boost::shared_ptr ocb, policies const &p) { methods_[name] = ocb; policies_[name] = p; @@ -989,7 +990,7 @@ } void interpreter::add_function(string const &name, - shared_ptr cb, policies const &p) + boost::shared_ptr cb, policies const &p) { Tcl_CreateObjCommand(interp_, name.c_str(), callback_handler, 0, 0); @@ -999,13 +1000,13 @@ } void interpreter::add_class(string const &name, - shared_ptr chb) + boost::shared_ptr chb) { class_handlers[interp_][name] = chb; } void interpreter::add_constructor(string const &name, - shared_ptr chb, shared_ptr cb, + boost::shared_ptr chb, boost::shared_ptr cb, policies const &p) { Tcl_CreateObjCommand(interp_, name.c_str(),