Skip to content

Compilation Error- error: cannot form a reference to 'void' #5

@sriharikarnam

Description

@sriharikarnam

The above compilation error is shown in thrust/detail/tuple.inl (line no.113,114,116) while compiling examples in Thrust

In file included from ./counting_iterator.cpp:2:
In file included from ../thrust/copy.h:511:
In file included from ../thrust/detail/copy.h:90:
In file included from ../thrust/detail/copy.inl:21:
In file included from ../thrust/system/detail/generic/copy.h:58:
In file included from ../thrust/system/detail/generic/copy.inl:21:
In file included from ../thrust/functional.h:26:
In file included from ../thrust/detail/functional/placeholder.h:20:
In file included from ../thrust/detail/functional/actor.h:29:
In file included from ../thrust/tuple.h:35:
../thrust/detail/tuple.inl:113:18: error: cannot form a reference to 'void'
typedef const T& const_type;
^
../thrust/tuple.h:247:18: note: in instantiation of template class 'thrust::access_traits' requested here
typename access_traits::parameter_type t1)
^
The above error hinders the compilation of 14 examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions