[asterisk-dev] backport RAII_VAR to 1.8?

Paul Belanger paul.belanger at polybeacon.com
Fri May 17 15:44:32 CDT 2013


On 13-05-17 01:54 PM, Russell Bryant wrote:
> The size of this backport is tiny.  It's a small macro.  It's just
> incredibly useful and actually helps write code less likely to contain
> errors.
>
> If it's a problem, it shouldn't be *too* hard to pull it back out.  The
> difficultly comes with however many places you have started using it.  In
> my case, it's in the SLA code, so it's a pretty small fraction of the code
> base.  If it gets backported, explodes through the 1.8 code, and then a
> problem is found 6 months later, that would be much more painful.  I
> wouldn't expect it to spread too fast in 1.8, since the changes are
> intentionally minimal.  It just might make fixing some bugs easier.
>
> Compiler version impact is worth considering.  I don't know what the
> specific impact is in terms of distro support, though.  How about we assume
> it's ok, and if there's an uproar, I agree to do the work to revert the
> usage I added.
>
For me it comes down to impact, I admit I know nothing about RAII_VAR, 
so if only SLA I agree it should be fine.

-- 
Paul Belanger | PolyBeacon, Inc.
Jabber: paul.belanger at polybeacon.com | IRC: pabelanger (Freenode)
Github: https://github.com/pabelanger | Twitter: 
https://twitter.com/pabelanger



More information about the asterisk-dev mailing list