E2560 %s requires publishable types (i.e. int, double, DynamicArray<T>, DelphiInterface<T>, UnicodeString, etc) (C++)

From Appmethod Topics
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

This message occurs when the code tries to generate RTTI for a type that is not published from Object Pascal. __delphirtti(<type identifier>) returns a PTypeInfo pointer (requires <TypeInfo.hpp>).

#include <System.hpp>
#include <TypeInfo.hpp>
void test()
  void* p1 = __delphirtti(int);
  void* p2 = __delphirtti(GUID);  // <- E2560

See Also