Hey all. I posted this originally:
http://groups.google.com/group/comp....e4b76201ce17f1
I got the enums to work how I like but I am having a problem with the
overloading of the assignment operator:
namespace UserAffilliatio nType
{
enum UserAffilliatio nType //
user.getInfo.af filiations.affi liations_elt.ty pe
{
collegeNetwork = 1,
highSchoolNetwo rk = 2,
workNetwork = 3,
geographyNetwor k = 4
};
UserAffilliatio nType&
UserAffilliatio nType::operator =(UserAffilliat ionType& lhs, const
QString &rhs);
}
When mingw32 trys to compile the overloading statment I get
In file included from kernel/FBNKernel_inclu des.h:22,
from fbNotify.h:27,
from fbNotify.cpp:18 :
kernel/FBNKernelEnums. h:35: error:
`facebook::User AffilliationTyp e::UserAffillia tionType&
facebook::UserA ffilliationType
::operator=(fac ebook::UserAffi lliationType::U serAffilliation Type&,
const QString&)' must be a nonstatic member function
mingw32-make[1]: *** [release\fbNotif y.o] Error 1
Any ideas on how I can get something like this to work?
MyUserAffilliat ionType = MyQString;