GeorgeR
Topic Author
Posts: 39
Joined: 15 Mar 2018, 01:06

TypeEnumFiller?

20 Apr 2018, 15:49

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
 
User avatar
hcpizzi
Site Admin
Posts: 321
Joined: 09 Feb 2012, 12:40

Re: TypeEnumFiller?

23 Apr 2018, 19:32

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.
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: TypeEnumFiller?

23 Apr 2018, 19:35

Make sure to read the C++ Architecture Guide:
https://www.noesisengine.com/docs/Gui.C ... umerations
 
Pawel
Posts: 1
Joined: 17 Jul 2017, 00:03

Re: TypeEnumFiller?

11 Mar 2019, 20:10

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> \
 
User avatar
jsantos
Site Admin
Posts: 3918
Joined: 20 Jan 2012, 17:18
Contact:

Re: TypeEnumFiller?

12 Mar 2019, 18:58

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.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Semrush [Bot] and 35 guests