26 Mar
2010
26 Mar
'10
2:48 p.m.
Hi all, I'm trying to compile boost::numeric::ublas with NVCC and I get the following errors: /usr/local/include/boost/type_traits/has_new_operator.hpp:28: error: `&' cannot appear in a constant-expression /usr/local/include/boost/type_traits/has_new_operator.hpp:28: error: template argument 2 is invalid This is related to #3919 and #3980 in a effort to make NVCC work with boost. Is there a known workaround so that I could tweak boost/config/compiler/nvcc.hpp? I'm using trunk under linux with the following piece of code: // Boost headers #include <boost/numeric/ublas/matrix.hpp> int main() { typedef boost::numeric::ublas::matrix<float> host_matrix_type; host_matrix_type host_mat; return 0; } Regards, Denis