How to define std::regex object as a const static member in a class and use it in a function?

前端 未结 0 440
悲&欢浪女
悲&欢浪女 2020-12-31 04:25

I have a class

class C
{
  private:
    const static std::regex r;
}

and I want to give the variable r some string to parse, as example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题