Search found 190 matches
- November 1st, 2018, 9:14 am
- Forum: Everything
- Topic: TEST%%%
- Replies: 2
- Views: 1624
- August 31st, 2018, 12:12 pm
- Forum: Everything
- Topic: chilli said we need to know size of the array at the compile
- Replies: 15
- Views: 5538
- August 23rd, 2018, 12:55 pm
- Forum: Everything
- Topic: A better alternative to solution files
- Replies: 21
- Views: 8105
Re: A better alternative to solution files
I edited the post to better explain CMake. Hopefully, that'll clear up some misconceptions!
- August 6th, 2018, 12:46 pm
- Forum: Everything
- Topic: A better alternative to solution files
- Replies: 21
- Views: 8105
A better alternative to solution files
For years now, the community has been sharing their projects using solution files. While this has worked fine thus far, it gets annoying when someone using Visual Studio 2017 opens up a project from Visual Studio 2015 and the build tools are set up differently. Also, if someone using another program...
- July 17th, 2018, 4:09 am
- Forum: Everything
- Topic: Ubuntu
- Replies: 2
- Views: 1494
Re: Ubuntu
You can always use FinalL's version under the CMakeBuild branch
- July 13th, 2018, 3:28 am
- Forum: Everything
- Topic: I6 Homework - How do I troubleshoot memory leaks?
- Replies: 10
- Views: 3725
Re: I6 Homework - How do I troubleshoot memory leaks?
Funny that you mentioned that. I was going to make a forum post about how you should structure your structs to have an array of 4/8/16 floats instead of individual floats. That way, it'll allow the compiler to generate SIMD instructions for it. #include <cstddef> struct alignas(16) math_stuff { stat...
- July 12th, 2018, 9:38 am
- Forum: Everything
- Topic: I6 Homework - How do I troubleshoot memory leaks?
- Replies: 10
- Views: 3725
Re: I6 Homework - How do I troubleshoot memory leaks?
This isn't really a good example to help explain my personal philosophy as to why I don't like to have non-const member functions call other non-const member functions. That discussion honestly deserves its own thread. As for the reason why my implementation will be better than just calling Pop(), i...
- July 12th, 2018, 4:46 am
- Forum: Everything
- Topic: I6 Homework - How do I troubleshoot memory leaks?
- Replies: 10
- Views: 3725
Re: I6 Homework - How do I troubleshoot memory leaks?
I've actually been moving away from non-const member functions calling other non-const member functions. It helps to reduce bugs caused by unseen changes made by them that you didn't expect. Not to mention that it makes unit testing easier as the non-const member functions are independent from each ...
- July 12th, 2018, 4:07 am
- Forum: Everything
- Topic: I6 Homework - How do I troubleshoot memory leaks?
- Replies: 10
- Views: 3725
Re: I6 Homework - How do I troubleshoot memory leaks?
There's also some redundancies in the checks you're doing for your copy constructors and copy operators but I'll leave that to you to figure that out for yourself. Overall, it was a good first effort and the program should be perfectly valid if you include the small changes I have made to the destru...
- July 12th, 2018, 4:05 am
- Forum: Everything
- Topic: I6 Homework - How do I troubleshoot memory leaks?
- Replies: 10
- Views: 3725
Re: I6 Homework - How do I troubleshoot memory leaks?
You had the right idea. The destructor was only deleting the top element and not every element in the stack. I made a pull request that can help you compare my results to yours. I'm guessing that the access violations you had were probably due to you deleting the element then accessing their Previou...