Skip to content

Commit

Permalink
change boost to c++11
Browse files Browse the repository at this point in the history
  • Loading branch information
noway committed Apr 13, 2015
1 parent f8808c5 commit 3e1460c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 4 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
9 changes: 5 additions & 4 deletions pyspades/vxl_c.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e1460c

Please sign in to comment.