Hi!
I’m using of v0.8.0 in VS2012 and tried ofxTrueTypeFontUC today. Unfortunately, while compiling ofxTrueTypeFontUC.cpp, it threw errors:
[tt]
Error 3 error C2758: ‘ofxTrueTypeFontUC::Impl::kLimitCharactersNum’ : must be initialized in constructor base/member initializer list c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 52 1 visualizer
Error 4 error C2758: ‘ofxTrueTypeFontUC::Impl::kTypeFaceUnloaded’ : must be initialized in constructor base/member initializer list c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 52 1 visualizer
Error 1 error C2864: ‘ofxTrueTypeFontUC::Impl::kLimitCharactersNum’ : only static const integral data members can be initialized within a class c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 74 1 visualizer
Error 2 error C2864: ‘ofxTrueTypeFontUC::Impl::kTypeFaceUnloaded’ : only static const integral data members can be initialized within a class c:…\of_v0.8.0_vs_release…\ofxtruetypefontuc.cpp 75 1 visualizer
[/tt]
So it seems that in line 74~75 of ofxTrueTypeFontUC.cpp,
const unsigned int kLimitCharactersNum = 10000;
const unsigned int kTypeFaceUnloaded = 0;
there is a problem.
Any idea?