C++ static operator overloading

后端 未结 4 819
无人及你
无人及你 2021-02-15 17:06

Is it possible to overload C++ class operators in the static context? e.g.

class Class_1{ ... }
int main()
{

    Class_1[val]...

}
4条回答
提交回复
热议问题