W8124 Published method '%s' contains an unpublishable type (C++)

From RAD Studio
Jump to: navigation, search

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

This message occurs when attempting to generate RTTI for a method that is not there (that is, a method that is not published from Delphi.)

#include <System.hpp>
	class T {
	};
	class __declspec(delphirtti) C  : public TObject { 
	public:
	  T f();
	  C() { }
	};