-
-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gigasecond/gigasecond_test.cpp include header? #149
Comments
Thanks for the references. Should have checked myself before opening an issue. I think that a test should not rely on the solution header to include another header which is actually needed by the test itself. As you stated in #121 it would really make sense to be consistent on this for all exercises. If you are interested I might have time to do this for all exercises in about 2-3 weeks. But I don't think this is a big issue right now. What do you think? |
I have a related issue, not sure if it's just me or an actual issue.
I can fix it by adding this header to the test case.
Thanks |
Answer is 3. I had included |
I think this actually is a reason why proper headers should be included? @patricksjackson ? |
I'm merging in change #201 that fixes this |
This is a question:
Wouldn't it be nicer to include "boost/date_time/posix_time/posix_time.hpp" into the gigasecond_test.cpp as it actually needs it, instead of implicitly relying on gigasecond.h to include it. Maybe one wants to keep the header slim and thus forward declares boost::posix_time::ptime and includes the full boost header in the cpp? Additionally there is "boost/date_time/posix_time/posix_time_types.hpp" which has no i/o and would be sufficient for the implementation of advance() but then the test doesn't compile.
Please correct me if I am wrong :)
Cheers, Lukas
The text was updated successfully, but these errors were encountered: