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:
5 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{
  • code/trunk/src/external/cpptcl/cpptcl.h

    r5781 r11071  
    1717#include <map>
    1818#include <vector>
    19 #include <boost/shared_ptr.hpp>
    20 #include <boost/bind.hpp>
    21 
     19#include <memory>
     20#include <functional>
    2221
    2322namespace Tcl
    2423{
     24namespace arg = std::placeholders;
    2525
    2626// exception class used for reporting all Tcl errors
     
    141141
    142142     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);
    144144
    145145     policies & get_policies(std::string const &name);
     
    148148     typedef std::map<
    149149          std::string,
    150           boost::shared_ptr<object_cmd_base>
     150          std::shared_ptr<object_cmd_base>
    151151          > method_map_type;
    152152
     
    214214{
    215215public:
    216      class_definer(boost::shared_ptr<class_handler<C> > ch) : ch_(ch) {}
     216     class_definer(std::shared_ptr<class_handler<C> > ch) : ch_(ch) {}
    217217
    218218     template <typename R>
     
    221221     {
    222222          ch_->register_method(name,
    223                boost::shared_ptr<details::object_cmd_base>(
     223               std::shared_ptr<details::object_cmd_base>(
    224224                    new details::method0<C, R>(f)), p);
    225225          return *this;
     
    231231     {
    232232          ch_->register_method(name,
    233                boost::shared_ptr<details::object_cmd_base>(
     233               std::shared_ptr<details::object_cmd_base>(
    234234                    new details::method0<C, R>(f)), p);
    235235          return *this;
     
    241241     {
    242242          ch_->register_method(name,
    243                boost::shared_ptr<details::object_cmd_base>(
     243               std::shared_ptr<details::object_cmd_base>(
    244244                    new details::method1<C, R, T1>(f)), p);
    245245          return *this;
     
    251251     {
    252252          ch_->register_method(name,
    253                boost::shared_ptr<details::object_cmd_base>(
     253               std::shared_ptr<details::object_cmd_base>(
    254254                    new details::method1<C, R, T1>(f)), p);
    255255          return *this;
     
    261261     {
    262262          ch_->register_method(name,
    263                boost::shared_ptr<details::object_cmd_base>(
     263               std::shared_ptr<details::object_cmd_base>(
    264264                    new details::method2<C, R, T1, T2>(f)), p);
    265265          return *this;
     
    271271     {
    272272          ch_->register_method(name,
    273                boost::shared_ptr<details::object_cmd_base>(
     273               std::shared_ptr<details::object_cmd_base>(
    274274                    new details::method2<C, R, T1, T2>(f)), p);
    275275          return *this;
     
    281281     {
    282282          ch_->register_method(name,
    283                boost::shared_ptr<details::object_cmd_base>(
     283               std::shared_ptr<details::object_cmd_base>(
    284284                    new details::method3<C, R, T1, T2, T3>(f)), p);
    285285          return *this;
     
    291291     {
    292292          ch_->register_method(name,
    293                boost::shared_ptr<details::object_cmd_base>(
     293               std::shared_ptr<details::object_cmd_base>(
    294294                    new details::method3<C, R, T1, T2, T3>(f)), p);
    295295          return *this;
     
    301301     {
    302302          ch_->register_method(name,
    303                boost::shared_ptr<details::object_cmd_base>(
     303               std::shared_ptr<details::object_cmd_base>(
    304304                    new details::method4<C, R, T1, T2, T3, T4>(f)), p);
    305305          return *this;
     
    312312     {
    313313          ch_->register_method(name,
    314                boost::shared_ptr<details::object_cmd_base>(
     314               std::shared_ptr<details::object_cmd_base>(
    315315                    new details::method4<C, R, T1, T2, T3, T4>(f)), p);
    316316          return *this;
     
    323323     {
    324324          ch_->register_method(name,
    325                boost::shared_ptr<details::object_cmd_base>(
     325               std::shared_ptr<details::object_cmd_base>(
    326326                    new details::method5<C, R, T1, T2, T3, T4, T5>(f)), p);
    327327          return *this;
     
    334334     {
    335335          ch_->register_method(name,
    336                boost::shared_ptr<details::object_cmd_base>(
     336               std::shared_ptr<details::object_cmd_base>(
    337337                    new details::method5<C, R, T1, T2, T3, T4, T5>(f)), p);
    338338          return *this;
     
    345345     {
    346346          ch_->register_method(name,
    347                boost::shared_ptr<details::object_cmd_base>(
     347               std::shared_ptr<details::object_cmd_base>(
    348348                    new details::method6<C, R, T1, T2, T3, T4, T5, T6>(f)),
    349349               p);
     
    358358     {
    359359          ch_->register_method(name,
    360                boost::shared_ptr<details::object_cmd_base>(
     360               std::shared_ptr<details::object_cmd_base>(
    361361                    new details::method6<C, R, T1, T2, T3, T4, T5, T6>(f)),
    362362               p);
     
    371371     {
    372372          ch_->register_method(name,
    373                boost::shared_ptr<details::object_cmd_base>(
     373               std::shared_ptr<details::object_cmd_base>(
    374374                    new details::method7<C, R,
    375375                    T1, T2, T3, T4, T5, T6, T7>(f)), p);
     
    384384     {
    385385          ch_->register_method(name,
    386                boost::shared_ptr<details::object_cmd_base>(
     386               std::shared_ptr<details::object_cmd_base>(
    387387                    new details::method7<C, R,
    388388                    T1, T2, T3, T4, T5, T6, T7>(f)), p);
     
    397397     {
    398398          ch_->register_method(name,
    399                boost::shared_ptr<details::object_cmd_base>(
     399               std::shared_ptr<details::object_cmd_base>(
    400400                    new details::method8<C, R,
    401401                    T1, T2, T3, T4, T5, T6, T7, T8>(f)), p);
     
    410410     {
    411411          ch_->register_method(name,
    412                boost::shared_ptr<details::object_cmd_base>(
     412               std::shared_ptr<details::object_cmd_base>(
    413413                    new details::method8<C, R,
    414414                    T1, T2, T3, T4, T5, T6, T7, T8>(f)), p);
     
    423423     {
    424424          ch_->register_method(name,
    425                boost::shared_ptr<details::object_cmd_base>(
     425               std::shared_ptr<details::object_cmd_base>(
    426426                    new details::method9<C, R,
    427427                    T1, T2, T3, T4, T5, T6, T7, T8, T9>(f)), p);
     
    436436     {
    437437          ch_->register_method(name,
    438                boost::shared_ptr<details::object_cmd_base>(
     438               std::shared_ptr<details::object_cmd_base>(
    439439                    new details::method9<C, R,
    440440                    T1, T2, T3, T4, T5, T6, T7, T8, T9>(f)), p);
     
    443443
    444444private:
    445      boost::shared_ptr<class_handler<C> > ch_;
     445     std::shared_ptr<class_handler<C> > ch_;
    446446};
    447447
     
    482482     {
    483483          add_function(name,
    484                boost::shared_ptr<details::callback_base>(
     484               std::shared_ptr<details::callback_base>(
    485485                    new details::callback0<R>(f)), p);
    486486     }
     
    491491     {
    492492          add_function(name,
    493                boost::shared_ptr<details::callback_base>(
     493               std::shared_ptr<details::callback_base>(
    494494                    new details::callback1<R, T1>(f)), p);
    495495     }
     
    500500     {
    501501          add_function(name,
    502                boost::shared_ptr<details::callback_base>(
     502               std::shared_ptr<details::callback_base>(
    503503                    new details::callback2<R, T1, T2>(f)), p);
    504504     }
     
    509509     {
    510510          add_function(name,
    511                boost::shared_ptr<details::callback_base>(
     511               std::shared_ptr<details::callback_base>(
    512512                    new details::callback3<R, T1, T2, T3>(f)), p);
    513513     }
     
    518518     {
    519519          add_function(name,
    520                boost::shared_ptr<details::callback_base>(
     520               std::shared_ptr<details::callback_base>(
    521521                    new details::callback4<R, T1, T2, T3, T4>(f)), p);
    522522     }
     
    528528     {
    529529          add_function(name,
    530                boost::shared_ptr<details::callback_base>(
     530               std::shared_ptr<details::callback_base>(
    531531                    new details::callback5<R, T1, T2, T3, T4, T5>(f)), p);
    532532     }
     
    538538     {
    539539          add_function(name,
    540                boost::shared_ptr<details::callback_base>(
     540               std::shared_ptr<details::callback_base>(
    541541                    new details::callback6<R, T1, T2, T3, T4, T5, T6>(f)), p);
    542542     }
     
    548548     {
    549549          add_function(name,
    550                boost::shared_ptr<details::callback_base>(
     550               std::shared_ptr<details::callback_base>(
    551551                    new details::callback7<R,
    552552                    T1, T2, T3, T4, T5, T6, T7>(f)), p);
     
    559559     {
    560560          add_function(name,
    561                boost::shared_ptr<details::callback_base>(
     561               std::shared_ptr<details::callback_base>(
    562562                    new details::callback8<R,
    563563                    T1, T2, T3, T4, T5, T6, T7, T8>(f)), p);
     
    572572     {
    573573          add_function(name,
    574                boost::shared_ptr<details::callback_base>(
     574               std::shared_ptr<details::callback_base>(
    575575                    new details::callback9<R,
    576576                    T1, T2, T3, T4, T5, T6, T7, T8, T9>(f)), p);
     
    583583     details::class_definer<C> class_(std::string const &name)
    584584     {
    585           boost::shared_ptr<details::class_handler<C> > ch(
     585          std::shared_ptr<details::class_handler<C> > ch(
    586586               new details::class_handler<C>());
    587587
     
    589589
    590590          add_constructor(name, ch,
    591                boost::shared_ptr<details::callback_base>(
     591               std::shared_ptr<details::callback_base>(
    592592                    new details::callback0<C*>(&details::construct<
    593593                         C, void, void, void, void, void, void, void,
     
    608608               callback_type;
    609609
    610           boost::shared_ptr<details::class_handler<C> > ch(
     610          std::shared_ptr<details::class_handler<C> > ch(
    611611               new details::class_handler<C>());
    612612
     
    614614
    615615          add_constructor(name, ch,
    616                boost::shared_ptr<details::callback_base>(
     616               std::shared_ptr<details::callback_base>(
    617617                    new callback_type(&details::construct<
    618618                         C, T1, T2, T3, T4, T5, T6, T7, T8, T9>::doit)), p);
     
    625625          std::string const &name, details::no_init_type const &)
    626626     {
    627           boost::shared_ptr<details::class_handler<C> > ch(
     627          std::shared_ptr<details::class_handler<C> > ch(
    628628               new details::class_handler<C>());
    629629
     
    660660
    661661     void add_function(std::string const &name,
    662           boost::shared_ptr<details::callback_base> cb,
     662          std::shared_ptr<details::callback_base> cb,
    663663          policies const &p = policies());
    664664
    665665     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);
    667667
    668668     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,
    671671          policies const &p = policies());
    672672
  • code/trunk/src/external/cpptcl/details/methods.h

    r5781 r11071  
    2727          if (cmem_)
    2828          {
    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));
    3434          }
    3535     }
     
    6060          {
    6161               dispatch<R>::template do_dispatch<T1>(
    62                     interp, boost::bind(cf_, p, _1),
     62                    interp, std::bind(cf_, p, arg::_1),
    6363                    tcl_cast<T1>::from(interp, objv[2]));
    6464          }
     
    6666          {
    6767               dispatch<R>::template do_dispatch<T1>(
    68                     interp, boost::bind(f_, p, _1),
     68                    interp, std::bind(f_, p, arg::_1),
    6969                    tcl_cast<T1>::from(interp, objv[2]));
    7070          }
     
    9696          {
    9797               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),
    9999                    tcl_cast<T1>::from(interp, objv[2]),
    100100                    tcl_cast<T2>::from(interp, objv[3]));
     
    103103          {
    104104               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),
    106106                    tcl_cast<T1>::from(interp, objv[2]),
    107107                    tcl_cast<T2>::from(interp, objv[3]));
     
    134134          {
    135135               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),
    137137                    tcl_cast<T1>::from(interp, objv[2]),
    138138                    tcl_cast<T2>::from(interp, objv[3]),
     
    142142          {
    143143               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),
    145145                    tcl_cast<T1>::from(interp, objv[2]),
    146146                    tcl_cast<T2>::from(interp, objv[3]),
     
    175175          {
    176176               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),
    178178                    tcl_cast<T1>::from(interp, objv[2]),
    179179                    tcl_cast<T2>::from(interp, objv[3]),
     
    184184          {
    185185               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),
    187187                    tcl_cast<T1>::from(interp, objv[2]),
    188188                    tcl_cast<T2>::from(interp, objv[3]),
     
    218218          {
    219219               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),
    221221                    tcl_cast<T1>::from(interp, objv[2]),
    222222                    tcl_cast<T2>::from(interp, objv[3]),
     
    228228          {
    229229               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),
    231231                    tcl_cast<T1>::from(interp, objv[2]),
    232232                    tcl_cast<T2>::from(interp, objv[3]),
     
    263263          {
    264264               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),
    266266                    tcl_cast<T1>::from(interp, objv[2]),
    267267                    tcl_cast<T2>::from(interp, objv[3]),
     
    274274          {
    275275               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),
    277277                    tcl_cast<T1>::from(interp, objv[2]),
    278278                    tcl_cast<T2>::from(interp, objv[3]),
     
    310310          {
    311311               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),
    313313                    tcl_cast<T1>::from(interp, objv[2]),
    314314                    tcl_cast<T2>::from(interp, objv[3]),
     
    322322          {
    323323               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),
    325325                    tcl_cast<T1>::from(interp, objv[2]),
    326326                    tcl_cast<T2>::from(interp, objv[3]),
     
    360360               dispatch<R>::template do_dispatch<
    361361                    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),
    364364                    tcl_cast<T1>::from(interp, objv[2]),
    365365                    tcl_cast<T2>::from(interp, objv[3]),
     
    375375               dispatch<R>::template do_dispatch<
    376376                    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),
    379379                    tcl_cast<T1>::from(interp, objv[2]),
    380380                    tcl_cast<T2>::from(interp, objv[3]),
     
    416416               dispatch<R>::template do_dispatch<
    417417                    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),
    420420                    tcl_cast<T1>::from(interp, objv[2]),
    421421                    tcl_cast<T2>::from(interp, objv[3]),
     
    432432               dispatch<R>::template do_dispatch<
    433433                    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),
    436436                    tcl_cast<T1>::from(interp, objv[2]),
    437437                    tcl_cast<T2>::from(interp, objv[3]),
  • code/trunk/src/external/cpptcl/details/methods_v.h

    r5781 r11071  
    3333          {
    3434               dispatch<R>::template do_dispatch<T1>(
    35                     interp, boost::bind(cf_, p, _1),
     35                    interp, std::bind(cf_, p, arg::_1),
    3636                    t1);
    3737          }
     
    3939          {
    4040               dispatch<R>::template do_dispatch<T1>(
    41                     interp, boost::bind(f_, p, _1),
     41                    interp, std::bind(f_, p, arg::_1),
    4242                    t1);
    4343          }
     
    7272          {
    7373               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),
    7575                    tcl_cast<T1>::from(interp, objv[2]),
    7676                    t2);
     
    7979          {
    8080               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),
    8282                    tcl_cast<T1>::from(interp, objv[2]),
    8383                    t2);
     
    113113          {
    114114               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),
    116116                    tcl_cast<T1>::from(interp, objv[2]),
    117117                    tcl_cast<T2>::from(interp, objv[3]),
     
    121121          {
    122122               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),
    124124                    tcl_cast<T1>::from(interp, objv[2]),
    125125                    tcl_cast<T2>::from(interp, objv[3]),
     
    156156          {
    157157               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),
    159159                    tcl_cast<T1>::from(interp, objv[2]),
    160160                    tcl_cast<T2>::from(interp, objv[3]),
     
    165165          {
    166166               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),
    168168                    tcl_cast<T1>::from(interp, objv[2]),
    169169                    tcl_cast<T2>::from(interp, objv[3]),
     
    202202          {
    203203               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),
    205205                    tcl_cast<T1>::from(interp, objv[2]),
    206206                    tcl_cast<T2>::from(interp, objv[3]),
     
    212212          {
    213213               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),
    215215                    tcl_cast<T1>::from(interp, objv[2]),
    216216                    tcl_cast<T2>::from(interp, objv[3]),
     
    251251          {
    252252               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),
    254254                    tcl_cast<T1>::from(interp, objv[2]),
    255255                    tcl_cast<T2>::from(interp, objv[3]),
     
    262262          {
    263263               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),
    265265                    tcl_cast<T1>::from(interp, objv[2]),
    266266                    tcl_cast<T2>::from(interp, objv[3]),
     
    302302          {
    303303               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),
    305305                    tcl_cast<T1>::from(interp, objv[2]),
    306306                    tcl_cast<T2>::from(interp, objv[3]),
     
    314314          {
    315315               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),
    317317                    tcl_cast<T1>::from(interp, objv[2]),
    318318                    tcl_cast<T2>::from(interp, objv[3]),
     
    356356               dispatch<R>::template do_dispatch<
    357357                    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),
    360360                    tcl_cast<T1>::from(interp, objv[2]),
    361361                    tcl_cast<T2>::from(interp, objv[3]),
     
    371371               dispatch<R>::template do_dispatch<
    372372                    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),
    375375                    tcl_cast<T1>::from(interp, objv[2]),
    376376                    tcl_cast<T2>::from(interp, objv[3]),
     
    415415               dispatch<R>::template do_dispatch<
    416416                    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),
    419419                    tcl_cast<T1>::from(interp, objv[2]),
    420420                    tcl_cast<T2>::from(interp, objv[3]),
     
    431431               dispatch<R>::template do_dispatch<
    432432                    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),
    435435                    tcl_cast<T1>::from(interp, objv[2]),
    436436                    tcl_cast<T2>::from(interp, objv[3]),
Note: See TracChangeset for help on using the changeset viewer.