Re: unique function names?
Re: unique function names?
- Subject: Re: unique function names?
- From: Paul Miller <email@hidden>
- Date: Tue, 22 May 2007 13:01:44 -0500
Paul Schneider wrote:
Not sure, it might, but then we'd have to use macros again just like
unique function names, since it is a single template function in a
header file shared by various plugins projects.
I think Paul Miller means anonymous namespaces. These are the preferred
C++ idiom for "static" classes or functions (something I always forget
about).
Basically, you say
namespace
{
// whatever you want
};
and the compiler will generate a unique namespace name for you.
Yeah - I use these to protect my template pixel processing functions
from each other similar-named functions when linking multiple effects
together.
--
Paul Miller | email@hidden | www.fxtech.com | Got Tivo?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden