Sign in to follow this  

Anonymous unions and the copy constructor

Recommended Posts

Simple quick question. I'm revamping my Vector class and put in an anonymous union like this:
    float index[2];
    float x, y;
Question is do I need a copy constructor still? Before I just had the "index" array and needed one but what happens now that its a union?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this