[graph_node] handle deprecated stl iterator
authorhyeonseok lee <hs89.lee@samsung.com>
Mon, 17 Jul 2023 11:42:13 +0000 (20:42 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 18 Jul 2023 05:49:42 +0000 (14:49 +0900)
 - Explicitly provide the parameter as default parameter for stl iterator is deprecated.

Signed-off-by: hyeonseok lee <hs89.lee@samsung.com>
nntrainer/graph/graph_node.h

index 8415d0a..dbb8664 100644 (file)
@@ -122,7 +122,8 @@ public:
  */
 template <typename LayerNodeType, typename GraphNodeType>
 class GraphNodeIterator
-  : public std::iterator<std::random_access_iterator_tag, GraphNodeType> {
+  : public std::iterator<std::random_access_iterator_tag, GraphNodeType,
+                         std::ptrdiff_t, GraphNodeType *, GraphNodeType &> {
   GraphNodeType *p; /** underlying object of GraphNode */
 
 public: