projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6befcbe
)
class fix for modernistic compilers
author
Chris Koeritz
<fred@gruntose.com>
Mon, 30 Oct 2017 01:31:54 +0000
(21:31 -0400)
committer
Chris Koeritz
<fred@gruntose.com>
Mon, 30 Oct 2017 01:31:54 +0000
(21:31 -0400)
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
patch
|
blob
|
history
diff --git
a/nucleus/library/nodes/singly_linked_list.h
b/nucleus/library/nodes/singly_linked_list.h
index d58f20fb7b8b0e2b236988230fd696b757ae2116..4c4a2110c85d192ed4999623bd6f1832fd4bb5b9 100644
(file)
--- 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.