visual c++ - greta compile error in VES2008 -
i compiled greta against ves2008, reports
error c2332: 'class' : missing tag name error c3306: 'regex::detail::<unnamed-tag>': unnamed class template not allowed error c2143: syntax error : missing ';' before '__builtin_alignof' error c2059: syntax error : '__builtin_alignof' error c2143: syntax error : missing ';' before '{' error c2447: '{' : missing function header (old-style formal list?)
relevant source code snippet:
template< typename t > class alignof { struct helper { helper(); char m_c; t m_t; }; public: enum { value = sizeof(helper)-sizeof(t) < sizeof(t) ? sizeof(helper)-sizeof(t) : sizeof(t) }; };
after precompiled, it
template< typename t > class __alignof { struct helper { helper(); char m_c; t m_t; }; public: enum { value = sizeof(helper)-sizeof(t) < sizeof(t) ? sizeof(helper)-sizeof(t) : sizeof(t) }; };
i have not found answers after googling. caused , how resolve it? t.i.a
although alignof
not seem reserved word in vs2008, it's similar _alignof
may confusing issue.
try changing name of class different.
Comments
Post a Comment