Permalink
Browse files

change boost to c++11

  • Loading branch information...
1 parent f8808c5 commit 3e1460c57ce95f7a041ec262e34739c475467649 @noway421 noway421 committed Apr 13, 2015
Showing with 9 additions and 5 deletions.
  1. +4 −1 build.py
  2. +5 −4 pyspades/vxl_c.h
View
@@ -18,8 +18,11 @@
]
for name in names:
+ extra = {'extra_compile_args' : ['-std=c++11']} if name in ['pyspades.vxl', 'pyspades.world', 'pyspades.mapmaker'] else {}
+
ext_modules.append(Extension(name, ['./%s.pyx' % name.replace('.', '/')],
- language = 'c++', include_dirs=['./pyspades', './include']))
+ language = 'c++', include_dirs=['./pyspades'], **extra))
+
setup(
name = 'pyspades extensions',
View
@@ -2,11 +2,12 @@
#define VXL_C_H
#include <bitset>
-#include <boost/unordered_map.hpp>
-#include <boost/unordered_set.hpp>
+#include <unordered_map>
+#include <unordered_set>
+
+#define map_type std::unordered_map
+#define set_type std::unordered_set
-#define map_type boost::unordered_map
-#define set_type boost::unordered_set
#define MAP_X 512
#define MAP_Y 512

0 comments on commit 3e1460c

Please sign in to comment.