Changeset 11071 for code/trunk/src/external
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/external/cpptcl/cpptcl.cc
r8351 r11071 17 17 using namespace Tcl::details; 18 18 using namespace std; 19 // boost::shared_ptr conflicts with the new std::shared_ptr20 //using namespace boost;21 22 19 23 20 result::result(Tcl_Interp *interp) : interp_(interp) {} … … 168 165 169 166 // map of polymorphic callbacks 170 typedef map<string, boost::shared_ptr<callback_base> > callback_interp_map;167 typedef map<string, std::shared_ptr<callback_base> > callback_interp_map; 171 168 typedef map<Tcl_Interp *, callback_interp_map> callback_map; 172 169 … … 181 178 182 179 // map of object handlers 183 typedef map<string, boost::shared_ptr<class_handler_base> > class_interp_map;180 typedef map<string, std::shared_ptr<class_handler_base> > class_interp_map; 184 181 typedef map<Tcl_Interp *, class_interp_map> class_handlers_map; 185 182 … … 492 489 493 490 void 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) 495 492 { 496 493 methods_[name] = ocb; … … 991 988 992 989 void 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) 994 991 { 995 992 Tcl_CreateObjCommand(interp_, name.c_str(), … … 1001 998 1002 999 void interpreter::add_class(string const &name, 1003 boost::shared_ptr<class_handler_base> chb)1000 std::shared_ptr<class_handler_base> chb) 1004 1001 { 1005 1002 class_handlers[interp_][name] = chb; … … 1007 1004 1008 1005 void 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, 1010 1007 policies const &p) 1011 1008 { -
code/trunk/src/external/cpptcl/cpptcl.h
r5781 r11071 17 17 #include <map> 18 18 #include <vector> 19 #include <boost/shared_ptr.hpp> 20 #include <boost/bind.hpp> 21 19 #include <memory> 20 #include <functional> 22 21 23 22 namespace Tcl 24 23 { 24 namespace arg = std::placeholders; 25 25 26 26 // exception class used for reporting all Tcl errors … … 141 141 142 142 void register_method(std::string const &name, 143 boost::shared_ptr<object_cmd_base> ocb, policies const &p);143 std::shared_ptr<object_cmd_base> ocb, policies const &p); 144 144 145 145 policies & get_policies(std::string const &name); … … 148 148 typedef std::map< 149 149 std::string, 150 boost::shared_ptr<object_cmd_base>150 std::shared_ptr<object_cmd_base> 151 151 > method_map_type; 152 152 … … 214 214 { 215 215 public: 216 class_definer( boost::shared_ptr<class_handler<C> > ch) : ch_(ch) {}216 class_definer(std::shared_ptr<class_handler<C> > ch) : ch_(ch) {} 217 217 218 218 template <typename R> … … 221 221 { 222 222 ch_->register_method(name, 223 boost::shared_ptr<details::object_cmd_base>(223 std::shared_ptr<details::object_cmd_base>( 224 224 new details::method0<C, R>(f)), p); 225 225 return *this; … … 231 231 { 232 232 ch_->register_method(name, 233 boost::shared_ptr<details::object_cmd_base>(233 std::shared_ptr<details::object_cmd_base>( 234 234 new details::method0<C, R>(f)), p); 235 235 return *this; … … 241 241 { 242 242 ch_->register_method(name, 243 boost::shared_ptr<details::object_cmd_base>(243 std::shared_ptr<details::object_cmd_base>( 244 244 new details::method1<C, R, T1>(f)), p); 245 245 return *this; … … 251 251 { 252 252 ch_->register_method(name, 253 boost::shared_ptr<details::object_cmd_base>(253 std::shared_ptr<details::object_cmd_base>( 254 254 new details::method1<C, R, T1>(f)), p); 255 255 return *this; … … 261 261 { 262 262 ch_->register_method(name, 263 boost::shared_ptr<details::object_cmd_base>(263 std::shared_ptr<details::object_cmd_base>( 264 264 new details::method2<C, R, T1, T2>(f)), p); 265 265 return *this; … … 271 271 { 272 272 ch_->register_method(name, 273 boost::shared_ptr<details::object_cmd_base>(273 std::shared_ptr<details::object_cmd_base>( 274 274 new details::method2<C, R, T1, T2>(f)), p); 275 275 return *this; … … 281 281 { 282 282 ch_->register_method(name, 283 boost::shared_ptr<details::object_cmd_base>(283 std::shared_ptr<details::object_cmd_base>( 284 284 new details::method3<C, R, T1, T2, T3>(f)), p); 285 285 return *this; … … 291 291 { 292 292 ch_->register_method(name, 293 boost::shared_ptr<details::object_cmd_base>(293 std::shared_ptr<details::object_cmd_base>( 294 294 new details::method3<C, R, T1, T2, T3>(f)), p); 295 295 return *this; … … 301 301 { 302 302 ch_->register_method(name, 303 boost::shared_ptr<details::object_cmd_base>(303 std::shared_ptr<details::object_cmd_base>( 304 304 new details::method4<C, R, T1, T2, T3, T4>(f)), p); 305 305 return *this; … … 312 312 { 313 313 ch_->register_method(name, 314 boost::shared_ptr<details::object_cmd_base>(314 std::shared_ptr<details::object_cmd_base>( 315 315 new details::method4<C, R, T1, T2, T3, T4>(f)), p); 316 316 return *this; … … 323 323 { 324 324 ch_->register_method(name, 325 boost::shared_ptr<details::object_cmd_base>(325 std::shared_ptr<details::object_cmd_base>( 326 326 new details::method5<C, R, T1, T2, T3, T4, T5>(f)), p); 327 327 return *this; … … 334 334 { 335 335 ch_->register_method(name, 336 boost::shared_ptr<details::object_cmd_base>(336 std::shared_ptr<details::object_cmd_base>( 337 337 new details::method5<C, R, T1, T2, T3, T4, T5>(f)), p); 338 338 return *this; … … 345 345 { 346 346 ch_->register_method(name, 347 boost::shared_ptr<details::object_cmd_base>(347 std::shared_ptr<details::object_cmd_base>( 348 348 new details::method6<C, R, T1, T2, T3, T4, T5, T6>(f)), 349 349 p); … … 358 358 { 359 359 ch_->register_method(name, 360 boost::shared_ptr<details::object_cmd_base>(360 std::shared_ptr<details::object_cmd_base>( 361 361 new details::method6<C, R, T1, T2, T3, T4, T5, T6>(f)), 362 362 p); … … 371 371 { 372 372 ch_->register_method(name, 373 boost::shared_ptr<details::object_cmd_base>(373 std::shared_ptr<details::object_cmd_base>( 374 374 new details::method7<C, R, 375 375 T1, T2, T3, T4, T5, T6, T7>(f)), p); … … 384 384 { 385 385 ch_->register_method(name, 386 boost::shared_ptr<details::object_cmd_base>(386 std::shared_ptr<details::object_cmd_base>( 387 387 new details::method7<C, R, 388 388 T1, T2, T3, T4, T5, T6, T7>(f)), p); … … 397 397 { 398 398 ch_->register_method(name, 399 boost::shared_ptr<details::object_cmd_base>(399 std::shared_ptr<details::object_cmd_base>( 400 400 new details::method8<C, R, 401 401 T1, T2, T3, T4, T5, T6, T7, T8>(f)), p); … … 410 410 { 411 411 ch_->register_method(name, 412 boost::shared_ptr<details::object_cmd_base>(412 std::shared_ptr<details::object_cmd_base>( 413 413 new details::method8<C, R, 414 414 T1, T2, T3, T4, T5, T6, T7, T8>(f)), p); … … 423 423 { 424 424 ch_->register_method(name, 425 boost::shared_ptr<details::object_cmd_base>(425 std::shared_ptr<details::object_cmd_base>( 426 426 new details::method9<C, R, 427 427 T1, T2, T3, T4, T5, T6, T7, T8, T9>(f)), p); … … 436 436 { 437 437 ch_->register_method(name, 438 boost::shared_ptr<details::object_cmd_base>(438 std::shared_ptr<details::object_cmd_base>( 439 439 new details::method9<C, R, 440 440 T1, T2, T3, T4, T5, T6, T7, T8, T9>(f)), p); … … 443 443 444 444 private: 445 boost::shared_ptr<class_handler<C> > ch_;445 std::shared_ptr<class_handler<C> > ch_; 446 446 }; 447 447 … … 482 482 { 483 483 add_function(name, 484 boost::shared_ptr<details::callback_base>(484 std::shared_ptr<details::callback_base>( 485 485 new details::callback0<R>(f)), p); 486 486 } … … 491 491 { 492 492 add_function(name, 493 boost::shared_ptr<details::callback_base>(493 std::shared_ptr<details::callback_base>( 494 494 new details::callback1<R, T1>(f)), p); 495 495 } … … 500 500 { 501 501 add_function(name, 502 boost::shared_ptr<details::callback_base>(502 std::shared_ptr<details::callback_base>( 503 503 new details::callback2<R, T1, T2>(f)), p); 504 504 } … … 509 509 { 510 510 add_function(name, 511 boost::shared_ptr<details::callback_base>(511 std::shared_ptr<details::callback_base>( 512 512 new details::callback3<R, T1, T2, T3>(f)), p); 513 513 } … … 518 518 { 519 519 add_function(name, 520 boost::shared_ptr<details::callback_base>(520 std::shared_ptr<details::callback_base>( 521 521 new details::callback4<R, T1, T2, T3, T4>(f)), p); 522 522 } … … 528 528 { 529 529 add_function(name, 530 boost::shared_ptr<details::callback_base>(530 std::shared_ptr<details::callback_base>( 531 531 new details::callback5<R, T1, T2, T3, T4, T5>(f)), p); 532 532 } … … 538 538 { 539 539 add_function(name, 540 boost::shared_ptr<details::callback_base>(540 std::shared_ptr<details::callback_base>( 541 541 new details::callback6<R, T1, T2, T3, T4, T5, T6>(f)), p); 542 542 } … … 548 548 { 549 549 add_function(name, 550 boost::shared_ptr<details::callback_base>(550 std::shared_ptr<details::callback_base>( 551 551 new details::callback7<R, 552 552 T1, T2, T3, T4, T5, T6, T7>(f)), p); … … 559 559 { 560 560 add_function(name, 561 boost::shared_ptr<details::callback_base>(561 std::shared_ptr<details::callback_base>( 562 562 new details::callback8<R, 563 563 T1, T2, T3, T4, T5, T6, T7, T8>(f)), p); … … 572 572 { 573 573 add_function(name, 574 boost::shared_ptr<details::callback_base>(574 std::shared_ptr<details::callback_base>( 575 575 new details::callback9<R, 576 576 T1, T2, T3, T4, T5, T6, T7, T8, T9>(f)), p); … … 583 583 details::class_definer<C> class_(std::string const &name) 584 584 { 585 boost::shared_ptr<details::class_handler<C> > ch(585 std::shared_ptr<details::class_handler<C> > ch( 586 586 new details::class_handler<C>()); 587 587 … … 589 589 590 590 add_constructor(name, ch, 591 boost::shared_ptr<details::callback_base>(591 std::shared_ptr<details::callback_base>( 592 592 new details::callback0<C*>(&details::construct< 593 593 C, void, void, void, void, void, void, void, … … 608 608 callback_type; 609 609 610 boost::shared_ptr<details::class_handler<C> > ch(610 std::shared_ptr<details::class_handler<C> > ch( 611 611 new details::class_handler<C>()); 612 612 … … 614 614 615 615 add_constructor(name, ch, 616 boost::shared_ptr<details::callback_base>(616 std::shared_ptr<details::callback_base>( 617 617 new callback_type(&details::construct< 618 618 C, T1, T2, T3, T4, T5, T6, T7, T8, T9>::doit)), p); … … 625 625 std::string const &name, details::no_init_type const &) 626 626 { 627 boost::shared_ptr<details::class_handler<C> > ch(627 std::shared_ptr<details::class_handler<C> > ch( 628 628 new details::class_handler<C>()); 629 629 … … 660 660 661 661 void add_function(std::string const &name, 662 boost::shared_ptr<details::callback_base> cb,662 std::shared_ptr<details::callback_base> cb, 663 663 policies const &p = policies()); 664 664 665 665 void add_class(std::string const &name, 666 boost::shared_ptr<details::class_handler_base> chb);666 std::shared_ptr<details::class_handler_base> chb); 667 667 668 668 void add_constructor(std::string const &name, 669 boost::shared_ptr<details::class_handler_base> chb,670 boost::shared_ptr<details::callback_base> cb,669 std::shared_ptr<details::class_handler_base> chb, 670 std::shared_ptr<details::callback_base> cb, 671 671 policies const &p = policies()); 672 672 -
code/trunk/src/external/cpptcl/details/methods.h
r5781 r11071 27 27 if (cmem_) 28 28 { 29 dispatch<R>::do_dispatch(interp, boost::bind(cf_, p));30 } 31 else 32 { 33 dispatch<R>::do_dispatch(interp, boost::bind(f_, p));29 dispatch<R>::do_dispatch(interp, std::bind(cf_, p)); 30 } 31 else 32 { 33 dispatch<R>::do_dispatch(interp, std::bind(f_, p)); 34 34 } 35 35 } … … 60 60 { 61 61 dispatch<R>::template do_dispatch<T1>( 62 interp, boost::bind(cf_, p,_1),62 interp, std::bind(cf_, p, arg::_1), 63 63 tcl_cast<T1>::from(interp, objv[2])); 64 64 } … … 66 66 { 67 67 dispatch<R>::template do_dispatch<T1>( 68 interp, boost::bind(f_, p,_1),68 interp, std::bind(f_, p, arg::_1), 69 69 tcl_cast<T1>::from(interp, objv[2])); 70 70 } … … 96 96 { 97 97 dispatch<R>::template do_dispatch<T1, T2>( 98 interp, boost::bind(cf_, p, _1,_2),98 interp, std::bind(cf_, p, arg::_1, arg::_2), 99 99 tcl_cast<T1>::from(interp, objv[2]), 100 100 tcl_cast<T2>::from(interp, objv[3])); … … 103 103 { 104 104 dispatch<R>::template do_dispatch<T1, T2>( 105 interp, boost::bind(f_, p, _1,_2),105 interp, std::bind(f_, p, arg::_1, arg::_2), 106 106 tcl_cast<T1>::from(interp, objv[2]), 107 107 tcl_cast<T2>::from(interp, objv[3])); … … 134 134 { 135 135 dispatch<R>::template do_dispatch<T1, T2, T3>( 136 interp, boost::bind(cf_, p, _1, _2,_3),136 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3), 137 137 tcl_cast<T1>::from(interp, objv[2]), 138 138 tcl_cast<T2>::from(interp, objv[3]), … … 142 142 { 143 143 dispatch<R>::template do_dispatch<T1, T2, T3>( 144 interp, boost::bind(f_, p, _1, _2,_3),144 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3), 145 145 tcl_cast<T1>::from(interp, objv[2]), 146 146 tcl_cast<T2>::from(interp, objv[3]), … … 175 175 { 176 176 dispatch<R>::template do_dispatch<T1, T2, T3, T4>( 177 interp, boost::bind(cf_, p, _1, _2, _3,_4),177 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4), 178 178 tcl_cast<T1>::from(interp, objv[2]), 179 179 tcl_cast<T2>::from(interp, objv[3]), … … 184 184 { 185 185 dispatch<R>::template do_dispatch<T1, T2, T3, T4>( 186 interp, boost::bind(f_, p, _1, _2, _3,_4),186 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4), 187 187 tcl_cast<T1>::from(interp, objv[2]), 188 188 tcl_cast<T2>::from(interp, objv[3]), … … 218 218 { 219 219 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5>( 220 interp, boost::bind(cf_, p, _1, _2, _3, _4,_5),220 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5), 221 221 tcl_cast<T1>::from(interp, objv[2]), 222 222 tcl_cast<T2>::from(interp, objv[3]), … … 228 228 { 229 229 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5>( 230 interp, boost::bind(f_, p, _1, _2, _3, _4,_5),230 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5), 231 231 tcl_cast<T1>::from(interp, objv[2]), 232 232 tcl_cast<T2>::from(interp, objv[3]), … … 263 263 { 264 264 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6>( 265 interp, boost::bind(cf_, p, _1, _2, _3, _4, _5,_6),265 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6), 266 266 tcl_cast<T1>::from(interp, objv[2]), 267 267 tcl_cast<T2>::from(interp, objv[3]), … … 274 274 { 275 275 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6>( 276 interp, boost::bind(f_, p, _1, _2, _3, _4, _5,_6),276 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6), 277 277 tcl_cast<T1>::from(interp, objv[2]), 278 278 tcl_cast<T2>::from(interp, objv[3]), … … 310 310 { 311 311 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6, T7>( 312 interp, boost::bind(cf_, p, _1, _2, _3, _4, _5, _6,_7),312 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7), 313 313 tcl_cast<T1>::from(interp, objv[2]), 314 314 tcl_cast<T2>::from(interp, objv[3]), … … 322 322 { 323 323 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6, T7>( 324 interp, boost::bind(f_, p, _1, _2, _3, _4, _5, _6,_7),324 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7), 325 325 tcl_cast<T1>::from(interp, objv[2]), 326 326 tcl_cast<T2>::from(interp, objv[3]), … … 360 360 dispatch<R>::template do_dispatch< 361 361 T1, T2, T3, T4, T5, T6, T7, T8>( 362 interp, boost::bind(cf_, p,363 _1, _2, _3, _4, _5, _6, _7,_8),362 interp, std::bind(cf_, p, 363 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8), 364 364 tcl_cast<T1>::from(interp, objv[2]), 365 365 tcl_cast<T2>::from(interp, objv[3]), … … 375 375 dispatch<R>::template do_dispatch< 376 376 T1, T2, T3, T4, T5, T6, T7, T8>( 377 interp, boost::bind(f_, p,378 _1, _2, _3, _4, _5, _6, _7,_8),377 interp, std::bind(f_, p, 378 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8), 379 379 tcl_cast<T1>::from(interp, objv[2]), 380 380 tcl_cast<T2>::from(interp, objv[3]), … … 416 416 dispatch<R>::template do_dispatch< 417 417 T1, T2, T3, T4, T5, T6, T7, T8, T9>( 418 interp, boost::bind(cf_, p,419 _1, _2, _3, _4, _5, _6, _7, _8,_9),418 interp, std::bind(cf_, p, 419 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8, arg::_9), 420 420 tcl_cast<T1>::from(interp, objv[2]), 421 421 tcl_cast<T2>::from(interp, objv[3]), … … 432 432 dispatch<R>::template do_dispatch< 433 433 T1, T2, T3, T4, T5, T6, T7, T8, T9>( 434 interp, boost::bind(f_, p,435 _1, _2, _3, _4, _5, _6, _7, _8,_9),434 interp, std::bind(f_, p, 435 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8, arg::_9), 436 436 tcl_cast<T1>::from(interp, objv[2]), 437 437 tcl_cast<T2>::from(interp, objv[3]), -
code/trunk/src/external/cpptcl/details/methods_v.h
r5781 r11071 33 33 { 34 34 dispatch<R>::template do_dispatch<T1>( 35 interp, boost::bind(cf_, p,_1),35 interp, std::bind(cf_, p, arg::_1), 36 36 t1); 37 37 } … … 39 39 { 40 40 dispatch<R>::template do_dispatch<T1>( 41 interp, boost::bind(f_, p,_1),41 interp, std::bind(f_, p, arg::_1), 42 42 t1); 43 43 } … … 72 72 { 73 73 dispatch<R>::template do_dispatch<T1, T2>( 74 interp, boost::bind(cf_, p, _1,_2),74 interp, std::bind(cf_, p, arg::_1, arg::_2), 75 75 tcl_cast<T1>::from(interp, objv[2]), 76 76 t2); … … 79 79 { 80 80 dispatch<R>::template do_dispatch<T1, T2>( 81 interp, boost::bind(f_, p, _1,_2),81 interp, std::bind(f_, p, arg::_1, arg::_2), 82 82 tcl_cast<T1>::from(interp, objv[2]), 83 83 t2); … … 113 113 { 114 114 dispatch<R>::template do_dispatch<T1, T2, T3>( 115 interp, boost::bind(cf_, p, _1, _2,_3),115 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3), 116 116 tcl_cast<T1>::from(interp, objv[2]), 117 117 tcl_cast<T2>::from(interp, objv[3]), … … 121 121 { 122 122 dispatch<R>::template do_dispatch<T1, T2, T3>( 123 interp, boost::bind(f_, p, _1, _2,_3),123 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3), 124 124 tcl_cast<T1>::from(interp, objv[2]), 125 125 tcl_cast<T2>::from(interp, objv[3]), … … 156 156 { 157 157 dispatch<R>::template do_dispatch<T1, T2, T3, T4>( 158 interp, boost::bind(cf_, p, _1, _2, _3,_4),158 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4), 159 159 tcl_cast<T1>::from(interp, objv[2]), 160 160 tcl_cast<T2>::from(interp, objv[3]), … … 165 165 { 166 166 dispatch<R>::template do_dispatch<T1, T2, T3, T4>( 167 interp, boost::bind(f_, p, _1, _2, _3,_4),167 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4), 168 168 tcl_cast<T1>::from(interp, objv[2]), 169 169 tcl_cast<T2>::from(interp, objv[3]), … … 202 202 { 203 203 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5>( 204 interp, boost::bind(cf_, p, _1, _2, _3, _4,_5),204 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5), 205 205 tcl_cast<T1>::from(interp, objv[2]), 206 206 tcl_cast<T2>::from(interp, objv[3]), … … 212 212 { 213 213 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5>( 214 interp, boost::bind(f_, p, _1, _2, _3, _4,_5),214 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5), 215 215 tcl_cast<T1>::from(interp, objv[2]), 216 216 tcl_cast<T2>::from(interp, objv[3]), … … 251 251 { 252 252 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6>( 253 interp, boost::bind(cf_, p, _1, _2, _3, _4, _5,_6),253 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6), 254 254 tcl_cast<T1>::from(interp, objv[2]), 255 255 tcl_cast<T2>::from(interp, objv[3]), … … 262 262 { 263 263 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6>( 264 interp, boost::bind(f_, p, _1, _2, _3, _4, _5,_6),264 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6), 265 265 tcl_cast<T1>::from(interp, objv[2]), 266 266 tcl_cast<T2>::from(interp, objv[3]), … … 302 302 { 303 303 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6, T7>( 304 interp, boost::bind(cf_, p, _1, _2, _3, _4, _5, _6,_7),304 interp, std::bind(cf_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7), 305 305 tcl_cast<T1>::from(interp, objv[2]), 306 306 tcl_cast<T2>::from(interp, objv[3]), … … 314 314 { 315 315 dispatch<R>::template do_dispatch<T1, T2, T3, T4, T5, T6, T7>( 316 interp, boost::bind(f_, p, _1, _2, _3, _4, _5, _6,_7),316 interp, std::bind(f_, p, arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7), 317 317 tcl_cast<T1>::from(interp, objv[2]), 318 318 tcl_cast<T2>::from(interp, objv[3]), … … 356 356 dispatch<R>::template do_dispatch< 357 357 T1, T2, T3, T4, T5, T6, T7, T8>( 358 interp, boost::bind(cf_, p,359 _1, _2, _3, _4, _5, _6, _7,_8),358 interp, std::bind(cf_, p, 359 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8), 360 360 tcl_cast<T1>::from(interp, objv[2]), 361 361 tcl_cast<T2>::from(interp, objv[3]), … … 371 371 dispatch<R>::template do_dispatch< 372 372 T1, T2, T3, T4, T5, T6, T7, T8>( 373 interp, boost::bind(f_, p,374 _1, _2, _3, _4, _5, _6, _7,_8),373 interp, std::bind(f_, p, 374 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8), 375 375 tcl_cast<T1>::from(interp, objv[2]), 376 376 tcl_cast<T2>::from(interp, objv[3]), … … 415 415 dispatch<R>::template do_dispatch< 416 416 T1, T2, T3, T4, T5, T6, T7, T8, T9>( 417 interp, boost::bind(cf_, p,418 _1, _2, _3, _4, _5, _6, _7, _8,_9),417 interp, std::bind(cf_, p, 418 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8, arg::_9), 419 419 tcl_cast<T1>::from(interp, objv[2]), 420 420 tcl_cast<T2>::from(interp, objv[3]), … … 431 431 dispatch<R>::template do_dispatch< 432 432 T1, T2, T3, T4, T5, T6, T7, T8, T9>( 433 interp, boost::bind(f_, p,434 _1, _2, _3, _4, _5, _6, _7, _8,_9),433 interp, std::bind(f_, p, 434 arg::_1, arg::_2, arg::_3, arg::_4, arg::_5, arg::_6, arg::_7, arg::_8, arg::_9), 435 435 tcl_cast<T1>::from(interp, objv[2]), 436 436 tcl_cast<T2>::from(interp, objv[3]), -
code/trunk/src/external/ois/linux/LinuxJoyStickEvents.cpp
r8351 r11071 34 34 #include <cassert> 35 35 #include <linux/input.h> 36 36 #include <unistd.h> 37 37 38 38 #include <sstream> -
code/trunk/src/external/tinyxml/ticpp.cpp
r8351 r11071 717 717 } 718 718 719 std:: auto_ptr< Node > Node::Clone() const719 std::unique_ptr< Node > Node::Clone() const 720 720 { 721 721 TiXmlNode* node = GetTiXmlPointer()->Clone(); … … 724 724 TICPPTHROW( "Node could not be cloned" ); 725 725 } 726 std:: auto_ptr< Node > temp( NodeFactory( node, false, false ) );726 std::unique_ptr< Node > temp( NodeFactory( node, false, false ) ); 727 727 728 728 // Take ownership of the memory from TiXml -
code/trunk/src/external/tinyxml/ticpp.h
r8351 r11071 966 966 Create an exact duplicate of this node and return it. 967 967 968 @note Using auto_ptr to manage the memory declared on the heap by TiXmlNode::Clone.968 @note Using unique_ptr to manage the memory declared on the heap by TiXmlNode::Clone. 969 969 @code 970 970 // Now using clone … … 972 972 ticpp::Node* sectionToClone; 973 973 sectionToClone = doc.FirstChild( "settings" ); 974 std:: auto_ptr< ticpp::Node > clonedNode = sectionToClone->Clone();974 std::unique_ptr< ticpp::Node > clonedNode = sectionToClone->Clone(); 975 975 // Now you can use the clone. 976 976 ticpp::Node* node2 = clonedNode->FirstChildElement()->FirstChild(); … … 980 980 @return Pointer the duplicate node. 981 981 */ 982 std:: auto_ptr< Node > Clone() const;982 std::unique_ptr< Node > Clone() const; 983 983 984 984 /** -
code/trunk/src/external/tolua/lua/package.lua
r8729 r11071 82 82 self.code = gsub(self.code,"%s*@%s*","@") -- eliminate spaces beside @ 83 83 self.code = gsub(self.code,"%s?inline(%s)","%1") -- eliminate 'inline' keyword 84 self.code = gsub(self.code,"%)%s?override;",");") -- eliminate 'override' keyword... at least most of the times 84 85 --self.code = gsub(self.code,"%s?extern(%s)","%1") -- eliminate 'extern' keyword 85 86 --self.code = gsub(self.code,"%s?virtual(%s)","%1") -- eliminate 'virtual' keyword
Note: See TracChangeset
for help on using the changeset viewer.