Commit 141785e0 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Properly export Vector_size_t if size_t is something other than uint64_t

parent 6f49ca43
......@@ -126,12 +126,9 @@ bool vector_nequal_compare(const vector<ValueType>& v1,
struct export_vector_types
template <class ValueType>
void operator()(ValueType) const
void operator()(ValueType, std::string type_name = "") const
string type_name;
if (std::is_same<ValueType, size_t>::value)
type_name = "size_t";
if (type_name.empty())
type_name = get_type_name<>()(typeid(ValueType));
std::replace(type_name.begin(), type_name.end(), ' ', '_');
string name = "Vector_" + type_name;
......@@ -440,7 +437,7 @@ BOOST_PYTHON_MODULE(libgraph_tool_core)
export_vector_types()(size_t(), "size_t");
class_<GraphInterface>("GraphInterface", init<>())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment