FreeOrion

Forums for the FreeOrion project
It is currently Tue Dec 12, 2017 8:26 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Aug 28, 2012 3:53 am 
Offline
Space Squid

Joined: Mon Aug 27, 2012 7:24 pm
Posts: 57
gcc does not like 'typename' outside of a template declaration

This patch reverts 2nd half of 5179

@@ -201,17 +201,17 @@ UI/ObjectListWnd.cpp:
EnumRow(enumT value, GG::Y row_height) :
GG::ListBox::Row(GG::X1, row_height, "EnumRow"),
m_value(value)
{
SetChildClippingMode(ClipToClient);
- const std::string& label = UserString(GG::GetEnumMap<typename enumT>().FromEnum(m_value));
+ const std::string& label = UserString(GG::GetEnumMap<enumT>().FromEnum(m_value));
push_back(new GG::TextControl(GG::X0, GG::Y0, UserString(label), ClientUI::GetFont(),
ClientUI::TextColor(), GG::FORMAT_LEFT | GG::FORMAT_VCENTER));
}
- typename enumT GetValue() const { return m_value; }
+ enumT GetValue() const { return m_value; }
private:
- typename enumT m_value;
+ enumT m_value;
};

void Init(const Condition::ConditionBase* init_condition) {
// fill droplist with basic types of conditions and select appropriate row
const GG::Y DROPLIST_HEIGHT(ClientUI::Pts() + 4);

_________________
All contributions are submitted under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidlines.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group