allendaicool / thrust

Automatically exported from code.google.com/p/thrust
Apache License 2.0
0 stars 0 forks source link

tuple constructor is too permissive #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This shouldn't compile

#include <thrust/tuple.h>

int main(void)
{
    thrust::tuple<int,int> foo(0);
}

Original issue reported on code.google.com by wnbell on 8 Jun 2010 at 12:16

GoogleCodeExporter commented 9 years ago
boost::tuple allows it, but C++0x std::tuple does not.

There's no good way to solve this without variadic templates, so I recommend we 
punt on fixing this right now.

Original comment by jaredhoberock on 7 Aug 2010 at 12:25

GoogleCodeExporter commented 9 years ago
Nothing we can do about this problem.

Original comment by jaredhoberock on 7 May 2012 at 9:47