Commit c66d8ce6 authored by incardon's avatar incardon

Fixing CSVWriter on Scientific Linux and NVCC

parent cc6cdca7
......@@ -14,7 +14,7 @@
#include <fstream>
#include "util/common.hpp"
#include <boost/mpl/range_c.hpp>
#include <boost/mpl/for_each.hpp>
#include "util/for_each_ref_host.hpp"
#include "csv_multiarray.hpp"
#include "util/util.hpp"
#include "is_csv_writable.hpp"
......@@ -57,7 +57,7 @@ struct csv_prp
void operator()(T& t)
{
// This is the type of the csv column
typedef typename boost::mpl::at<typename Tobj::type,T>::type col_type;
typedef decltype(obj.template get<T::value>()) col_type;
// Remove the reference from the column type
typedef typename boost::remove_reference<col_type>::type col_rtype;
......@@ -183,7 +183,7 @@ class CSVWriter
csv_col<typename v_prp::value_type,has_attributes<typename v_prp::value_type>::value> col(str);
// Iterate through all the vertex and create the vertex list
boost::mpl::for_each< boost::mpl::range_c<int,0,v_prp::value_type::max_prop> >(col);
boost::mpl::for_each_ref_host< boost::mpl::range_c<int,0,v_prp::value_type::max_prop> >(col);
str << "\n";
......@@ -225,7 +225,7 @@ class CSVWriter
csv_prp<decltype(obj)> c_prp(str,obj);
// write the properties to the stream string
boost::mpl::for_each< boost::mpl::range_c<int,0,v_prp::value_type::max_prop> >(c_prp);
boost::mpl::for_each_ref_host< boost::mpl::range_c<int,0,v_prp::value_type::max_prop> >(c_prp);
str << "\n";
}
......
Markdown is supported
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