remove c++17 deprecation warning

This commit is contained in:
Sébastien Loriot 2021-10-19 15:05:22 +02:00
parent c8eda9deca
commit 6f5c0edd5a
1 changed files with 6 additions and 1 deletions

View File

@ -50,8 +50,13 @@ struct Value_function
template <typename V, typename G>
struct Gradient_function
: public std::iterator<std::output_iterator_tag, void, void, void, void>
{
typedef void value_type;
typedef void Distance;
typedef void Pointer;
typedef void Reference;
typedef std::output_iterator_tag category;
typedef V argument_type;
typedef std::pair<G, bool> result_type;