Compiler warning: struct std::iterator’ is deprecated
Summary
./src/caosdb/result_table.cpp:21:
/home/joscha/caosdb/src/caosdb-cpplib/include/caosdb/result_table.h:85:31: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
85 | class HeaderIterator : std::iterator<std::output_iterator_tag, ResultTableColumn> {
...
./include/caosdb/entity.h:245:32: warning: ‘template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator’ is deprecated [-Wdeprecated-declarations]
245 | class iterator : public std::iterator<std::output_iterator_tag, T> {
Expected Behavior
What did you expect how the software should behave?
Actual Behavior
What did the software actually do?
Steps to Reproduce the Problem
Please describe, step by step, how others can reproduce the problem. Please try these steps for yourself on a clean system.
Specifications
- Version: Which version of this software?
- Platform: Which operating system, which other relevant software versions?
Possible fixes
Do you have ideas how the issue can be resolved?
Edited by Joscha Schmiedt