C
Christopher Benson-Manica
Why can't I use a class destructor in a using declaration:
using MyClass::~MyClass;
?
using MyClass::~MyClass;
?
Christopher Benson-Manica said:Why can't I use a class destructor in a using declaration:
using MyClass::~MyClass;
Christopher said:Why can't I use a class destructor in a using declaration:
using MyClass::~MyClass;
Christopher Benson-Manica said:Why can't I use a class destructor in a using declaration:
using MyClass::~MyClass;
Jonathan Turkanis said:Interesting question! It seems to be allowed by the grammar; it may be
illegal for some other reason, however.
VC7.1 is the only compiler I've tried which accepts it.
Mike Wahler said:7.3.3 The using declaration
snip lovely quote from Standard
Christopher Benson-Manica said:Ah, a quote from the Standard - thank you (even though it has now
obliterated all my hopes and dreams...)
So here's my SUPER question:
How can I reconcile conflicting destructor declarations when multiply
inheriting, which I WOULD do with using; if that old wolf Stroustrup
hadn't forbidden it...? *sigh*
Christopher Benson-Manica said:Mike Wahler <[email protected]> spoke thus:
Ah, a quote from the Standard - thank you (even though it has now
obliterated all my hopes and dreams...) So here's my SUPER question:
How can I reconcile conflicting destructor declarations when multiply
inheriting, which I WOULD do with using; if that old wolf Stroustrup
hadn't forbidden it...? *sigh*
Jonathan Turkanis said:If you're not planning on calling the destructors explicitly, you
don't need to reconcile them.
What are you trying to do?
Christopher Benson-Manica said:Why can't I use a class destructor in a using declaration:
using MyClass::~MyClass;
?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.