Re: is_a<> with references

2022-06-01 Thread Aldy Hernandez via Gcc
Issue resolved. Typedef no longer needed. Sorry for the noise. Aldy On Wed, Jun 1, 2022 at 4:29 PM Aldy Hernandez wrote: > > Hi folks. > > I rolled our own is_a<> implementation for vrange, because it was > trivial. We needed it to work on references, and GCC's is-a.h > implementation is point

is_a<> with references

2022-06-01 Thread Aldy Hernandez via Gcc
Hi folks. I rolled our own is_a<> implementation for vrange, because it was trivial. We needed it to work on references, and GCC's is-a.h implementation is pointer-only. However, I now realize it confuses gengtype when adding additional types: template struct vrange_traits { // Default to some