eldardamari/spl-assignments — pull request #4 by oryband (2012-11-23 13:50:36+00:00)
Title: Fixed duplicate symbol problem, and some small other stuff.

Hey.

I pulled and still had some errors. I dug in and found out the following:

1. The `inline` indeed fixed the problem, **way to go :)**. However, it isn't necessary everywhere. `inline` jut tells the compiler to just paste the inline function code wherever you call it, and not have the runtime environment jump to where the function is located.
In order to solve the dtor problem we had last night we just needed to use `inline virtual ~Course()` in `Course.h` and the same in `Student.h`. This fixed the vtable problem. Note we don't need any dtor implementation in `.cpp` file, and also don't need to even declare/implement a dtor in their child classes.

2. The problem with `util.h` wasn't because of the namespace. We just needed a `util.cpp`. The duplicity was caused because we included the *implementation* in several files, instead of just the *decleration*. of `util.h`'s functions.

If do a clean pull from me, it should compile properly now.

There are also other small stuffs, none too important - check the commit message and diffs for A FULL REPORT! :)