Intel compiler produces warnings in CMake itself with auto_ptr
The class cmCompiledGeneratorExpression
has its copy constructor disabled but is being used in a number of places with CM_AUTO_PTR
copy assignments, i.e.
CM_AUTO_PTR cge = ge.Parse(*i);
This expression requires the class to be copy constructible or to have a specialized cast to auto_ptr_ref
, at least if CM_AUTO_PTR
is std::auto_ptr
.
I'm not familiar with the class, is it intentional that the copy constructor is disabled here or would a trivial copy constructor solve this issue?
The new Intel 2017.4 compiler on Windows when used together with Visual Studio 2017 emits warnings on this issue - but only regarding this one class, so I believe this is the only occurrence of the issue.
EDIT: Correction, cmCryptoHash
is in the same situation.