Changeset 1b1ba8


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.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r296839 r1b1ba8  
    33
    44AC_PREREQ([2.65])
    5 AC_INIT([CodePatterns], [1.1.2], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
     5AC_INIT([CodePatterns], [1.1.3], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])
    66AC_CONFIG_AUX_DIR(config)
    77AC_CONFIG_SRCDIR([src/Patterns/Singleton_impl.hpp])
     
    2525# refer to the libtool manual, section "Updating library version information":
    2626# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
    27 AC_SUBST([CODEPATTERNS_SO_VERSION], [7:2:0])
    28 AC_SUBST([CODEPATTERNS_API_VERSION], [1.1.2])
     27AC_SUBST([CODEPATTERNS_SO_VERSION], [7:3:0])
     28AC_SUBST([CODEPATTERNS_API_VERSION], [1.1.3])
    2929
    3030# Checks for libraries.
  • 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.