Skip to main content

Timeline for Singly-linked list implementation

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
May 23, 2017 at 12:40 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Jan 9, 2017 at 17:22 comment added fer-rum I addressed it shortly, since otherwise I would write a whole new side story. I rarely run into these cases, so you might want to proof-read. I am not sure if the OP wanted to address ODR issues - at the first glance this looked more like premature optimization to me. (Did not actually try it without the inline though.)
Jan 9, 2017 at 17:16 history edited fer-rum CC BY-SA 3.0
Included kudos (now with the correct nick)
Jan 9, 2017 at 16:22 comment added Cody Gray inline was presumably included here to bypass the ODR, rather than as a misguided attempt to assist the compiler in optimization. Of course, it is still misguided, because the ODR does not apply to template functions that are not fully specialized. Consider updating your answer to mention this important distinction and address what is the OP's most likely misconception.
Jan 9, 2017 at 15:49 comment added fer-rum Indeed. Maybe I should have made that more clear.
Jan 9, 2017 at 15:45 comment added Edward Just one note about #pragma once - while it is supported by a number of popular compilers, it's not standardized and therefore not guaranteed to be portable.
Jan 9, 2017 at 15:10 history answered fer-rum CC BY-SA 3.0