Skip to content

Commit

Permalink
Remove a template specifier.
Browse files Browse the repository at this point in the history
Instanciating std::make_pair normally shouldn't be used with template
specifiers. In this case it broke compilation for C++11.
  • Loading branch information
mordante committed Jun 29, 2014
1 parent 98cf0e5 commit c0002f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game_events/wmi_container.cpp
Expand Up @@ -119,7 +119,7 @@ void wmi_container::get_items(const map_location& hex,
scoped_xy_unit highlighted_unit("unit", hex.x, hex.y, *resources::units);

// Check each menu item.
BOOST_FOREACH( const item_ptr & item, std::make_pair<const_iterator> (start, finish) )
BOOST_FOREACH( const item_ptr & item, std::make_pair (start, finish) )
{
// Can this item be shown?
if ( item->use_wml_menu() && item->can_show(hex) )
Expand Down

0 comments on commit c0002f2

Please sign in to comment.