Page 1 of 1

TypeEnumFiller?

Posted: 20 Apr 2018, 15:49
by GeorgeR
Apparently this is an incomplete class. Looking through the UE4 plugin it doesn't seem to be actually defined anywhere - it's all forward declarations.
NS_IMPLEMENT_REFLECTION_ENUM(Frontier::UI::Controls::FontAwesomeIcon)
{
	NsMeta<TypeId>("FontAwesomeIcon");

	// TODO: All the rest!
	NsVal("Times", FontAwesomeIcon::Times);
}
Severity	Code	Description	Project	File	Line	Suppression State
Error	C2027	use of undefined type 'Noesis::TypeEnumFiller<Frontier::UI::Controls::FontAwesomeIcon>'	Frontier	G:\Frontier\Source\Frontier\Private\UI\Controls\FontAwesome.cpp	26

Re: TypeEnumFiller?

Posted: 23 Apr 2018, 19:32
by hcpizzi
Hi George,

You have to either declare the enum first using NS_DECLARE_REFLECTION_ENUM and then define it with NS_IMPLEMENT_REFLECTION_ENUM, or use NS_IMPLEMENT_INLINE_REFLECTION_ENUM to declare and define at the same time.

Re: TypeEnumFiller?

Posted: 23 Apr 2018, 19:35
by jsantos
Make sure to read the C++ Architecture Guide:
https://www.noesisengine.com/docs/Gui.C ... umerations

Re: TypeEnumFiller?

Posted: 11 Mar 2019, 20:10
by Pawel
Hi.

Probably there is a bug in: macro "NS_IMPLEMENT_INLINE_REFLECTION_ENUM"

first line is:
template<> struct TypeEnumFiller<T> \

and should be:
template<> struct Noesis::TypeEnumFiller<T> \

Re: TypeEnumFiller?

Posted: 12 Mar 2019, 18:58
by jsantos
Probably there is a bug in: macro "NS_IMPLEMENT_INLINE_REFLECTION_ENUM"
Thanks for reporting this. I will have a look at it later today.