From f5475859a2ee3cc65c88c0f504d5d1d57eb85d3d Mon Sep 17 00:00:00 2001 From: snoe925 Date: Wed, 23 Oct 2019 22:07:44 -0500 Subject: [PATCH] Fix conflicts with boost placeholders (#18) Remove using namespace in methods.h header. The user should get to select the namespace for _1, _2, ... --- cpptcl/details/methods.h | 38 ++++++++++++++++++-------------------- cpptcl/details/methods_v.h | 36 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 38 deletions(-) diff --git a/cpptcl/details/methods.h b/cpptcl/details/methods.h index 6a01072..34029ff 100644 --- a/cpptcl/details/methods.h +++ b/cpptcl/details/methods.h @@ -10,8 +10,6 @@ // Note: this file is not supposed to be a stand-alone header -using namespace std::placeholders; - template class method0 : public object_cmd_base { typedef R (C::*mem_type)(); typedef R (C::*cmem_type)() const; @@ -49,9 +47,9 @@ template class method1 : public object_cmd_ba C *p = static_cast(pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1), tcl_cast::from(interp, objv[2], byRef.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1), tcl_cast::from(interp, objv[2], byRef.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1), tcl_cast::from(interp, objv[2], byRef.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1), tcl_cast::from(interp, objv[2], byRef.value)); } } @@ -76,9 +74,9 @@ template class method2 : public C *p = static_cast(pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value)); } } @@ -104,9 +102,9 @@ template class meth C *p = static_cast(pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value)); } } @@ -133,9 +131,9 @@ template (pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value)); } } @@ -163,9 +161,9 @@ template (pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value)); } } @@ -194,9 +192,9 @@ template (pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value)); } } @@ -226,9 +224,9 @@ template (pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6, _7), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6, _7), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value)); } } @@ -259,9 +257,9 @@ template (pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6, _7, _8), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6, _7, _8), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value)); } } @@ -293,9 +291,9 @@ template (pv); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6, _7, _8, _9), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value), tcl_cast::from(interp, objv[10], byRef9.value)); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8, std::placeholders::_9), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value), tcl_cast::from(interp, objv[10], byRef9.value)); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6, _7, _8, _9), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value), tcl_cast::from(interp, objv[10], byRef9.value)); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8, std::placeholders::_9), tcl_cast::from(interp, objv[2], byRef1.value), tcl_cast::from(interp, objv[3], byRef2.value), tcl_cast::from(interp, objv[4], byRef3.value), tcl_cast::from(interp, objv[5], byRef4.value), tcl_cast::from(interp, objv[6], byRef5.value), tcl_cast::from(interp, objv[7], byRef6.value), tcl_cast::from(interp, objv[8], byRef7.value), tcl_cast::from(interp, objv[9], byRef8.value), tcl_cast::from(interp, objv[10], byRef9.value)); } } diff --git a/cpptcl/details/methods_v.h b/cpptcl/details/methods_v.h index f6f99f0..835dea8 100644 --- a/cpptcl/details/methods_v.h +++ b/cpptcl/details/methods_v.h @@ -26,9 +26,9 @@ template class method1 : public obje object t1 = get_var_params(interp, objc, objv, var_start, pol); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1), t1); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1), t1); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1), t1); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1), t1); } } @@ -54,9 +54,9 @@ template class method2::template do_dispatch(interp, std::bind(cf_, p, _1, _2), tcl_cast::from(interp, objv[2]), t2); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2), tcl_cast::from(interp, objv[2]), t2); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2), tcl_cast::from(interp, objv[2]), t2); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2), tcl_cast::from(interp, objv[2]), t2); } } @@ -82,9 +82,9 @@ template class method3::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), t3); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), t3); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), t3); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), t3); } } @@ -110,9 +110,9 @@ template class meth object t4 = get_var_params(interp, objc, objv, var_start, pol); if (cmem_) { - dispatch::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), t4); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), t4); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), t4); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), t4); } } @@ -138,9 +138,9 @@ template ::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), t5); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), t5); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), t5); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), t5); } } @@ -166,9 +166,9 @@ template ::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), t6); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), t6); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), t6); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), t6); } } @@ -194,9 +194,9 @@ template ::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6, _7), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), t7); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), t7); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6, _7), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), t7); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), t7); } } @@ -222,9 +222,9 @@ template ::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6, _7, _8), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), t8); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), t8); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6, _7, _8), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), t8); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), t8); } } @@ -250,9 +250,9 @@ template ::template do_dispatch(interp, std::bind(cf_, p, _1, _2, _3, _4, _5, _6, _7, _8, _9), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), tcl_cast::from(interp, objv[9]), t9); + dispatch::template do_dispatch(interp, std::bind(cf_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8, std::placeholders::_9), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), tcl_cast::from(interp, objv[9]), t9); } else { - dispatch::template do_dispatch(interp, std::bind(f_, p, _1, _2, _3, _4, _5, _6, _7, _8, _9), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), tcl_cast::from(interp, objv[9]), t9); + dispatch::template do_dispatch(interp, std::bind(f_, p, std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, std::placeholders::_4, std::placeholders::_5, std::placeholders::_6, std::placeholders::_7, std::placeholders::_8, std::placeholders::_9), tcl_cast::from(interp, objv[2]), tcl_cast::from(interp, objv[3]), tcl_cast::from(interp, objv[4]), tcl_cast::from(interp, objv[5]), tcl_cast::from(interp, objv[6]), tcl_cast::from(interp, objv[7]), tcl_cast::from(interp, objv[8]), tcl_cast::from(interp, objv[9]), t9); } }