我找到了,想知道我怎么才能使用那个库或其他C++反射库来实现这一点。请解释你的答案,因为我不能只看一眼代码就知道是怎么回事。我的问题是:int myfunc(int arg-a, int arg-b);mywrapperfunc应该包装myfuncmywrapperfunc丢弃第一个参数,接受第二个参数,这是一个数组。然后,我使用数组项
传递‘const IntBag’作为‘this’参数丢弃限定符-fpermissive> int IntBag::operator[](int index){‘this’参数丢弃限定符-fpermissive 19 \ int val=ai;^ intbag.cpp:12:5:注意:在调用‘IntBag::操作符’12而今IntBag::运算符{ //get数组项^~ intbag.cpp:在成员函数‘IntBag& I
我所要做的就是在我的console.log前面加上一条自定义消息。如果可以用更简单的方法来做,请让我知道。this.date} ${this.time}] INFO `); }现在,当我运行logger.log()时,我得到的输出是text 3 ---', 'another string');
[2021-03-22 16:42:46] INFO --- Some text 3 --- anoth