Boost logo

Boost Users :

Subject: Re: [Boost-users] boost/type_traits/has_new_operator.hpp and NVCC
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-03-27 11:53:49


Denis Taniguchi wrote:
> 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:
>
I will give it a look monday when I have acces to our GPU machine.
I think it's related to nvcc support for template, especially SFINAE.

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net