Skip to main content

Timeline for Gallery template class

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Nov 17, 2021 at 16:38 comment added JDługosz The #endif has nothing to do with the syntax of member templates defined outside of their class body. It is a pure text based thing, not anything like a namespace. Try #including that header file twice, and see if it causes any errors or other issues. That is what the #if/#endif is there for.
Nov 16, 2021 at 17:30 comment added Shwalala #1. I used #endif since I had a separate gallery.cpp file. I ran into too many problems using template functions in that manner. So I ended up copy pasting the entire contents of the gallery.cpp file into the gallery.h file. I tried moving #endif to the end of the file but it still requires me to full qualify the class name with its template parameters in the function definitions. Is that the expected behavior?
Nov 16, 2021 at 14:48 history edited JDługosz CC BY-SA 4.0
Correction in copy constructor
Nov 16, 2021 at 3:24 comment added Shwalala I responded to your Answer on the answer below:
Nov 16, 2021 at 2:48 vote accept Shwalala
Nov 16, 2021 at 1:10 history edited JDługosz CC BY-SA 4.0
added 823 characters in body
Nov 16, 2021 at 0:56 history answered JDługosz CC BY-SA 4.0