use nested custom type with BOOST_COMPUTE_ADAPT_STRUCT macro
Open
feature
help wanted
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 340
- PR merge metrics
- No merged PRs in 30d
Description
Hello!
I use code like below in my program.
```c++
struct MyStructA{
int a;
int b;
};
BOOST_COMPUTE_ADAPT_STRUCT(MyStructA,MyStructA,(a,b))
struct MyStructB{
MystructA c;
int d;
};
BOOST_COMPUTE_ADAPT_STRUCT(MyStructB,MystructB,(c,d))
```
While I compile the program , the compiler report some errors about redefinition:
`
/boost/compute/type_traits/type_name.hpp:119:24: error: redefinition of 'const char* boost::compute::type_name() [with T= MyStructB]'
`
I wonder whether I could nested a struct in another struct.
Contributor guide
Assessment
This issue has not been assessed yet.