CONFIG: enable use of stricter deprecation warnings

- selected with '+strict' in WM_COMPILE_CONTROL or 'wmake -strict', it
  enables the FOAM_DEPRECATED_STRICT() macro, which can be used to
  mark methods that are implicitly deprecated, but are not yet marked
  as full deprecated (eg, API modification is too recent, generates
  too many warnings).  Can be considered a developer option.
This commit is contained in:
Mark Olesen
2023-08-09 14:34:17 +02:00
parent 224c3199aa
commit 778796853d
10 changed files with 67 additions and 19 deletions

View File

@ -55,7 +55,7 @@ public:
i_(i)
{}
word& keyword() const noexcept { return keyword_; }
const word& keyword() const noexcept { return keyword_; }
friend Ostream& operator<<(Ostream& os, const ent& e)
{
@ -113,7 +113,7 @@ int main(int argc, char *argv[])
dict.swapDown(dict.first());
forAllConstIter(Dictionary<ent>, dict, iter)
forAllConstIters(dict, iter)
{
Info<< "element : " << *iter;
}
@ -153,9 +153,9 @@ int main(int argc, char *argv[])
}
Info<< nl << "scalarDict1: " << endl;
forAllConstIter(PtrDictionary<Scalar>, scalarDict, iter)
forAllConstIters(scalarDict, iter)
{
Info<< " = " << iter() << endl;
Info<< " = " << *iter << endl;
}
PtrDictionary<Scalar> scalarDict2;
@ -165,7 +165,7 @@ int main(int argc, char *argv[])
scalarDict2.insert(key, new Scalar(1.3*i));
}
Info<< nl << "scalarDict2: " << endl;
forAllConstIter(PtrDictionary<Scalar>, scalarDict2, iter)
forAllConstIters(scalarDict2, iter)
{
std::cout<< "iter: " << typeid(*iter).name() << '\n';