Re: Skipping RVO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12 August 2014 04:37, navin p wrote:
> Hi,
>    Is there any way to skip RVO using code. I know that g++ has a
> -fno-elide-constructors . But i have to change the library for lot of
> platforms and different compilers like gcc,clang,xlC,SunStudio,aCC
> etc. I read that compiler is free to do the RVO as said by the
> standard. But is there a way to prevent it for all compilers like
> specifying  some snippet?

No. If your code relies on elision not happening then your code is broken.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux