From d60e7a2467ab8be80a06ba670ccba1819ca7c0e4 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 29 Oct 2017 21:31:54 -0400 Subject: [PATCH] class fix for modernistic compilers visual studio of some vintage hated the NEXT_NODE class constant and insisted that it needed to be static if it has an initializer, so that's what it got. --- nucleus/library/nodes/singly_linked_list.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nucleus/library/nodes/singly_linked_list.h b/nucleus/library/nodes/singly_linked_list.h index d58f20fb..4c4a2110 100644 --- a/nucleus/library/nodes/singly_linked_list.h +++ b/nucleus/library/nodes/singly_linked_list.h @@ -28,7 +28,8 @@ public: //hmmm: clean up all children? ~singly_linked_list() {} - const int NEXT_NODE = 0; // symbol for the rest of the list linked here. + // symbol for the rest of the list linked here. + static const int NEXT_NODE = 0; int elements() const; //!< returns the number of items currently in the list, including this node. -- 2.34.1