E2535 Unvollständiger Typ darf nicht Teil einer throw-Spezifikation sein (C++)

Aus RAD Studio
Wechseln zu: Navigation, Suche

Nach oben zu Compiler-Fehler und -Warnungen (C++) - Index

Dieser Fehler wird ausgelöst, wenn ein unvollständiger Typ in einer throw-Spezifikation verwendet wird. Aus C++ ISO 14882:1998 15.1.3: "The type of the throw-expression shall not be an incomplete type, or a pointer or reference to an incomplete type, other than void*, const void*, volatile void*, or const volatile void*." (Der Typ des throw-Ausdruckes soll kein unvollständiger Typ oder ein Zeiger oder eine Referenz auf einen unvollständigen Typ sein, außer void*, const void*, volatile void* oder const volatile void*.) Dies schließt die Exception-Spezifikationen (15.4.1) ein.