synced commits to master at Luiserebii/Accelerated-C--Exercises from mirror
- 1b02b30e40 Ahhhh man, this took quite a bit of googling and thinking. Templates. When organizing them, how do we do it? How do we organize them?
The answer I eventually came to, I bioled down in a comment, which I
will paste below:
* How to compile with templates?
* This is an issue that the book had warned me ahead of time; the
* definition of templates
* are needed at link time, and typically, this is provided within the
* At the moment, I am providing the implementation in a seperate header
* file. It is still
* capped off with ".h" because I don't feel like trying to see how to
* get vim to recognize
* ".tpp" files as valid C++ for highlighting/editing convenience, and
* also, I'm not entirely
* sure what the right way to do this is.
* I am also using:
* -implemented-in-the-header-file as inspiration.
* Something else, too: If I'm including this file into the header file,
* shouldn't the
* implementation get its own header guard and fully qualified names?
* For the moment, I am going
* to just give it a header guard, but qualified names... the only way
* would be to constantly
* upkeep a search-and-replace, you know, it can be inconvenient to do
* this for every single line.
* Would that be the only way? Keeping this blob here for reference.
- 9a1bdea4fb Reorganization as this grows
- 3af7a666db Wowwowow, added find, and appears to be working!!! I'm really loving
- dd85d5a51d Appears that equal() implementation is working!
- 999cb01444 Needed to add typename; compiling and running as expected now!
- Compare 11 commits »
1 week ago