Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Programming Threads > Re: POD functio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 4070 of 4146
Post > Topic >>

Re: POD function static initialization from function return, thread

by David Schwartz <davids@[EMAIL PROTECTED] > Oct 6, 2008 at 04:57 AM

On Oct 4, 2:50=A0pm, Brian Cole <col...@[EMAIL PROTECTED]
> wrote:

> Is this assumption safe? Where is it not? Or am I just playing with
> fire and asking to get burned?

Simply make your code conditionally compile. Define a preprocessor
value that triggers this optimization. Ensure it is defined only on
platforms where this is known to be safe. You may wish to issue a
warning if you're running on a platform where it is not know to be
safe. The warning should get someone to check the platform.

This would be a platform-specific optimization, suitable only on
platforms where it is known to be safe.

DS
 




 3 Posts in Topic:
POD function static initialization from function return, thread
Brian Cole <coleb2@[EM  2008-10-04 14:50:23 
Re: POD function static initialization from function return, thr
David Schwartz <davids  2008-10-06 04:57:25 
Re: POD function static initialization from function return, thr
Anthony Williams <anth  2008-10-06 14:19:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 9:55:08 CST 2008.