Search found 180 matches

by cyboryxmen
November 1st, 2018, 9:14 am
Forum: Everything
Topic: TEST%%%
Replies: 2
Views: 421

Re: Coding Challenge 9 - TEST%%%

by cyboryxmen
August 23rd, 2018, 12:55 pm
Forum: Everything
Topic: A better alternative to solution files
Replies: 21
Views: 1858

Re: A better alternative to solution files

I edited the post to better explain CMake. Hopefully, that'll clear up some misconceptions!
by cyboryxmen
August 6th, 2018, 12:46 pm
Forum: Everything
Topic: A better alternative to solution files
Replies: 21
Views: 1858

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...
by cyboryxmen
July 17th, 2018, 4:09 am
Forum: Everything
Topic: Ubuntu
Replies: 2
Views: 437

Re: Ubuntu

You can always use FinalL's version under the CMakeBuild branch
by cyboryxmen
July 13th, 2018, 3:28 am
Forum: Everything
Topic: I6 Homework - How do I troubleshoot memory leaks?
Replies: 10
Views: 735

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...
by cyboryxmen
July 12th, 2018, 9:38 am
Forum: Everything
Topic: I6 Homework - How do I troubleshoot memory leaks?
Replies: 10
Views: 735

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...
by cyboryxmen
July 12th, 2018, 4:46 am
Forum: Everything
Topic: I6 Homework - How do I troubleshoot memory leaks?
Replies: 10
Views: 735

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 ...
by cyboryxmen
July 12th, 2018, 4:07 am
Forum: Everything
Topic: I6 Homework - How do I troubleshoot memory leaks?
Replies: 10
Views: 735

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...
by cyboryxmen
July 12th, 2018, 4:05 am
Forum: Everything
Topic: I6 Homework - How do I troubleshoot memory leaks?
Replies: 10
Views: 735

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...