I am confused!

void AnimationEngine::AddAnimationSet(Animation* animations)
{
	AnimationSet* newSet = new AnimationSet();

	for(int i = 0; i < (sizeof(animations) / sizeof(Animation)); i++)
	{
		for(int n = 0; n < animations[i].AnimationConditions.size(); n++)
		{
                     //newSet->conditions is of type std::vector<std::vector<myType>>
                     //animations[i].AnimationConditions is of type std::vector<myType>
			newSet->conditions[i] = animations[i].AnimationConditions;
		}
	}	

        //Stuff unrelated to error...
}

Getting a "no operator "=" matches these operands"

newSet->conditions[i] = animations[i].AnimationConditions;

shouldnt you pick an entry from animations.AnimationConditions? ([n] ?)

Im trying to copy the entire vector, not an element of the vector.

>>for(int i = 0; i < (sizeof(animations) / sizeof(Animation)); i++)

I hope you know that, thats only going to run once. And for your error, are you sure its in that line? If what you say is true then it should compile.

Lets see the definition of condition and AnimationCondition.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.