[vlc-devel] commit: vlc_meta: C++ doesn't like bitmask with enum said Laurent. This shouldn't be used in module, but... (Pierre d'Herbemont )

Rémi Denis-Courmont remi at remlab.net
Wed Jan 6 20:44:15 CET 2010


Le mercredi 6 janvier 2010 17:50:34 git version control, vous avez écrit :
> vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed Jan 
>  6 16:49:33 2010 +0100| [eaba6509a79dd35ce836400d2dce4588ac77d1dd] |
>  committer: Pierre d'Herbemont
> 
> vlc_meta: C++ doesn't like bitmask with enum said Laurent. This shouldn't
>  be used in module, but...

Bit values from enumeration are perfectly fine. Using the enumeration typename 
(if any) as a variable or parameter type would be wrong however. An enum 
variable is not expected to have a value outside the enumeration; this is 
undefined.

-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis



More information about the vlc-devel mailing list