Thank all for your advice.Let's modify the unreasonable code in next week.
________________________________
发件人: minggo <notifications@github.com>
发送时间: 2013年12月20日 21:15
收件人: cocos2d/cocos2d-x
抄送: 侯国华
主题: Re: [cocos2d-x] math lib,transform (#4576)


In cocos/base/C3DTransform.h:

> +        /**
> +         * Listener for C3DTransform events.
> +         */
> +        Listener* listener;
> +
> +        /**
> +         * An optional long value that is specified to the Listener's callback.
> +         */
> +        long cookie;
> +    };
> +
> +    /**
> +     * Defines the matrix dirty bits for marking the translation, scale and rotation
> +     * components of the C3DTransform.
> +     */
> +    enum MatrixDirtyBits


You are right. enum class is not convenient if it needs these operation. Or should override these operation.

—
Reply to this email directly or view it on GitHub<https://github.com/cocos2d/cocos2d-x/pull/4576/files#r8498995>.