![]() |
Create and declare new type...
I'm looking for something such that I can:
MACRO(xxx) * funny; This will declare a pointer to a struct with a virtual function called 'xxx' with void() signature. Furthermore I want to be able to: some_template<MACRO(xxx)> thus I don't believe that macro can simply be "struct { virtual void xxx() = 0; }" Been playing around with decltype. Seems to me that something should be possible here but I can't find it so far. -- http://crazycpp.wordpress.com |
Re: Create and declare new type...
On 3/21/2011 8:09 PM, Noah Roberts wrote:
> I'm looking for something such that I can: > > MACRO(xxx) * funny; > > This will declare a pointer to a struct with a virtual function called > 'xxx' with void() signature. > > Furthermore I want to be able to: > > some_template<MACRO(xxx)> > > thus I don't believe that macro can simply be "struct { virtual void > xxx() = 0; }" > > Been playing around with decltype. Seems to me that something should be > possible here but I can't find it so far. Might be simpler to have two macros for that... V -- I do not respond to top-posted replies, please don't ask |
| All times are GMT. The time now is 05:01 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.