Tencent / rapidjson

A fast JSON parser/generator for C++ with both SAX/DOM style API
http://rapidjson.org/
Other
14.26k stars 3.53k forks source link

Prohibit unused copy ctor & operator= #2224

Open EstherWx opened 11 months ago

EstherWx commented 11 months ago

Class 'GenericRegex' and struct 'Foo' have dynamic memmory/resource allocations but no copy constructor and operator=.

And, class 'GenericRegex' has members of type 'Stack', whose copy constructor and assignment operator are prohibited. Struct 'Foo' is only used in the test file, copy constructor and assignment operator are not used.

Prohibit their copy constructor and assignment operator.