Changeset 1b1ba8 for src


Ignore:
Timestamp:
Apr 2, 2011, 12:22:22 AM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
6aa233
Parents:
296839
git-author:
Frederik Heber <heber@…> (04/01/11 18:38:15)
git-committer:
Frederik Heber <heber@…> (04/02/11 00:22:22)
Message:

BUGFIX: enumeration.hpp needs <map> and <algorithms>.

  • Library version is now 7:3:0, API version is 1.1.3.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Helpers/enumeration.hpp

    r296839 r1b1ba8  
    1313#include <config.h>
    1414#endif
     15
     16#include <algorithm>
     17#include <map>
    1518
    1619/************ struct to contain simple enumerations ***************/
     
    4144  }
    4245
    43   map<C,unsigned int> there;
    44   map<unsigned int,C> back;
     46  std::map<C,unsigned int> there;
     47  std::map<unsigned int,C> back;
    4548private:
    4649  unsigned int max;
     
    6164enumeration<C> enumerate(ForwardIterator first,ForwardIterator last){
    6265  enumeration<C> res;
    63   for_each(first,last,bind1st(mem_fun(&enumeration<C>::add),&res));
     66  std::for_each(first,last,bind1st(mem_fun(&enumeration<C>::add),&res));
    6467  return res;
    6568}
Note: See TracChangeset for help on using the changeset viewer.