[vlc-devel] [RFC v4] vlc_vector: add helpers for vectors

Rémi Denis-Courmont remi at remlab.net
Sun Sep 2 12:07:57 CEST 2018


Le sunnuntaina 2. syyskuuta 2018, 13.01.22 EEST Romain Vimont a écrit :
> On Sat, Sep 01, 2018 at 12:16:54PM +0300, Rémi Denis-Courmont wrote:
> > Le perjantaina 31. elokuuta 2018, 22.48.17 EEST Romain Vimont a écrit :
> > > I'm not sure about the definition of "compatible", but I would say that
> > > type* and void* are compatible types.
> > 
> > No, unless type is void, they are not.
> 
> Do you think that using memcpy() would solve the strict aliasing
> violation (since it uses char* which is allowed to alias)?

It might work but you will need to convert the representation before. In other 
words, that seems like merely moving the problem.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list