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:
Alexander Alekhin 2015-09-22 22:00:16 +03:00
parent 3a3f4038bf
commit dd9da53860

View File

@ -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