From 56b6b2a233fcd0e3672e8b7f6e737eecc1a790ef Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 8 Nov 2016 14:17:10 -0500 Subject: [PATCH] Deprecate deepStdVectorPointerCopy --- include/cantera/base/utilities.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/cantera/base/utilities.h b/include/cantera/base/utilities.h index caaa67ddf..20f6290a2 100644 --- a/include/cantera/base/utilities.h +++ b/include/cantera/base/utilities.h @@ -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 void deepStdVectorPointerCopy(const std::vector &fromVec, std::vector &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];