Changeset 1b1ba8
- Timestamp:
- Apr 2, 2011, 12:22:22 AM (15 years ago)
- 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)
- Files:
-
- 2 edited
-
configure.ac (modified) (2 diffs)
-
src/Helpers/enumeration.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
r296839 r1b1ba8 3 3 4 4 AC_PREREQ([2.65]) 5 AC_INIT([CodePatterns], [1.1. 2], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/])5 AC_INIT([CodePatterns], [1.1.3], [heber@ins.uni-bonn.de], [codepatterns], [http://trac.ins.uni-bonn.de/projects/CodePatterns/]) 6 6 AC_CONFIG_AUX_DIR(config) 7 7 AC_CONFIG_SRCDIR([src/Patterns/Singleton_impl.hpp]) … … 25 25 # refer to the libtool manual, section "Updating library version information": 26 26 # 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])27 AC_SUBST([CODEPATTERNS_SO_VERSION], [7:3:0]) 28 AC_SUBST([CODEPATTERNS_API_VERSION], [1.1.3]) 29 29 30 30 # Checks for libraries. -
src/Helpers/enumeration.hpp
r296839 r1b1ba8 13 13 #include <config.h> 14 14 #endif 15 16 #include <algorithm> 17 #include <map> 15 18 16 19 /************ struct to contain simple enumerations ***************/ … … 41 44 } 42 45 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; 45 48 private: 46 49 unsigned int max; … … 61 64 enumeration<C> enumerate(ForwardIterator first,ForwardIterator last){ 62 65 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)); 64 67 return res; 65 68 }
Note:
See TracChangeset
for help on using the changeset viewer.
