Implizite Art von Destruktor in C ++C++

Programme in C++. Entwicklerforum
Guest
 Implizite Art von Destruktor in C ++

Post by Guest »

Ich weiß, dass ein Destruktor in C ++ keinen Wert zurückgibt und sein Typ kann nicht explizit angegeben werden. ist gemäß dem C ++ - Standard korrekt.

Code: Select all

#include 
#include 

using namespace std;

class X
{
};

int main()
{
X *x = new X();
char *fullname;

using destructor_type = decltype(x->~X());
const type_info  &destructor_t = typeid(destructor_type);

fullname = abi::__cxa_demangle(destructor_t.name(), NULL, NULL, NULL);
cout

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post
  • Clang-Fehler mit einem privaten Destruktor
    by Guest » » in C++
    0 Replies
    5 Views
    Last post by Guest
  • Clang-Fehler mit einem privaten Destruktor [geschlossen]
    by Guest » » in C++
    0 Replies
    3 Views
    Last post by Guest
  • Python (Sympy) Implizite Funktion: Werte anstelle von Plot?
    by Anonymous » » in Python
    0 Replies
    0 Views
    Last post by Anonymous
  • Python (Sympy) Implizite Funktion: Werte anstelle von Plot?
    by Anonymous » » in Python
    0 Replies
    0 Views
    Last post by Anonymous
  • Verhindern Sie implizite Umwandlungen
    by Guest » » in Python
    0 Replies
    3 Views
    Last post by Guest