disable String(int) ctor
MSVC and GCC compilers interprets cv::String a(0) as a valid statement with conversion of "int" argument to "const char*". This patch forbids this expected behaviour.
This commit is contained in:
parent
3a3f4038bf
commit
dd9da53860
@ -576,6 +576,8 @@ private:
|
||||
|
||||
char* allocate(size_t len); // len without trailing 0
|
||||
void deallocate();
|
||||
|
||||
String(int); // disabled and invalid. Catch invalid usages like, commandLineParser.has(0) problem
|
||||
};
|
||||
|
||||
//! @} core_basic
|
||||
|
Loading…
Reference in New Issue
Block a user