Deprecate deepStdVectorPointerCopy
This commit is contained in:
parent
5641fa83e9
commit
56b6b2a233
1 changed files with 3 additions and 0 deletions
|
|
@ -490,10 +490,13 @@ R poly3(D x, R* c)
|
|||
* deep-copied to the other vector
|
||||
* @param toVec Vector of pointers to a templated class. This will be
|
||||
* overwritten and on return will be a copy of the fromVec
|
||||
* @deprecated Used only in deprecated code. To be removed after Cantera 2.3.
|
||||
*/
|
||||
template<class D>
|
||||
void deepStdVectorPointerCopy(const std::vector<D*> &fromVec, std::vector<D*> &toVec)
|
||||
{
|
||||
warn_deprecated("deepStdVectorPointerCopy", "Used only in deprecated code."
|
||||
" To be removed after Cantera 2.3.");
|
||||
size_t is = toVec.size();
|
||||
for (size_t i = 0; i < is; i++) {
|
||||
delete toVec[i];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue