[ros-dev] Re: 12775: don't pass vector<pointer> by value unless you are looking for trouble, also fixed Assert() to take stdargs to make it's usage simpler and less error-prone. Also fixed IsTrue(), etc, to take file and line info by args and created macros to pass that info automatically.

Royce Mitchell III royce3 at ev1.net
Mon Jan 3 21:19:50 CET 2005


royce at svn.reactos.com wrote:

>don't pass vector<pointer> by value unless you are looking for trouble, also fixed Assert() to take stdargs to make it's usage simpler and less error-prone. Also fixed IsTrue(), etc, to take file and line info by args and created macros to pass that info automatically.
>
>  
>
Casper, I made some changes to Assert() and the code that calls it, in 
the hope that this is what you really wanted. I apologize sincerely if 
you had wanted to do something else with message[], but if you do, I 
think it would be easier to do so from within Assert(). I will revert 
that part of this patch if you needed the buffer in Assert()'s callers.



More information about the Ros-dev mailing list