|
Boost Users : |
Subject: Re: [Boost-users] [mpl] newbie question about if_c et al
From: Jonathan Leonard (v-jleonard_at_[hidden])
Date: 2009-04-07 01:49:36
Steven Watanabe wrote:
>>
>> This is not entirely optimal though as it requires 3 MOV instructions to create the scs void* copy when SYNCH is false (and I'd rather not lean on compiler optimizations even if they will help in this case).
> Why not? Have you actually looked at what compiler optimizations do?
> The optimization required is really not very sophisticated.
Mmm. I know that compilers do much more sophisticated optimization than this but I just figured that there was a more elegant way to express my actual intent here. Using a 'void*' when it isn't ever actually used/read seems like a 'hack' [and I don't like writing superfluous code].
However, it seems that there's no better approach in this case, so it will be fine.
Thanks,
Jonathan
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net