#3756: problem with std::mem_fun_ref in structure.cpp while compiling
-------------------------------------+--------------------
        Reporter:  Ezio              |       Type:  bug
          Status:  new               |   Priority:  normal
       Milestone:  unspecified       |  Component:  other
         Version:  git/master        |   Keywords:
      Blocked By:                    |   Blocking:
Operating System:  All/Non-Specific  |
-------------------------------------+--------------------
 i got an error message identifier not found while compiling with vs 2012,
 after googling around i found way round with lambda but i'm not sure why
 it does not implemented.and i still stuck at recompiling qt to vs2012 so i
 can't figure it out whether it working as intended or not
 {{{
 //need to reset the quantity built for each entry in the production list
                 std::for_each(productionRun.begin(), productionRun.end(),
 std::mem_fun_ref(&ProductionRunEntry::restart));
 }}}
 to
 {{{
 //need to reset the quantity built for each entry in the production list
                 std::for_each(productionRun.begin(), productionRun.end(),
 [] (ProductionRunEntry i) { i.restart(); });
 }}}

-- 
Ticket URL: <http://developer.wz2100.net/ticket/3756>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Warzone2100-project mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/warzone2100-project

Reply via email to