http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29834

--- Comment #13 from M.S. Babaei <ace.of.zerosync at gmail dot com> ---
(In reply to James Kanze from comment #9)
> Re using the init list syntax: it won't work if you have to be compatible
> with other compilers (like Sun CC).  Using something like (Doh (x)), ++x
> seems to be the most portable work-around.

Sorry, I didn't get your answer at first sight. Actually your elegant
workaround is the most portable way. And, works on all compilers, too. Even
pre-C++11 era compilers.

Thanks.

Reply via email to