quantlib.co.uk

Life as a Quantitative Analyst

Assert Macros in C++

Using assertions is essential in defensive C++ programming. However, you want to see the filename and line number in the error, right. This leads back to using a macro, and we all know how nasty they are ;-) All is explained in this excellent article: http://powerof2games.com/node/10

Posted in Software |

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.