Re: unique function names?
Re: unique function names?
- Subject: Re: unique function names?
- From: Micah Sharp <email@hidden>
- Date: Tue, 22 May 2007 10:58:13 -0700
oh yeah, that is right. Worth a shot. Thanks,
Micah
On May 22, 2007, at 10:49 AM, 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.
_______________________________________________
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