Jump to content

'could not deduce template argument'


Guest mantragora

Recommended Posts

Guest mantragora

Hey Orbolts :)

So I wanted to iterate over groups but I don't want to use "GA_FOR_ALL_PRIMGROUPS". Other possibility is to use iterators in for{} loop. Code below is straight ctrl+C/ctrl+V from HDK documentation. And it gives me error you can see in attached image.

for (GA_GroupTable::iterator<GA_ElementGroup> it = gdp->primitiveGroups().begin(); !it.atEnd(); ++it) 
{
    // TODO: write your code
}

At first I thought that some #includes are missing but after whole day messing around it I'm out of ideas what is wrong.

My icludes:

#include <UT/UT_DSOVersion.h>
#include <UT/UT_Interrupt.h>
#include <GU/GU_Detail.h>
#include <PRM/PRM_Include.h>
#include <PRM/PRM_ChoiceList.h>
#include <OP/OP_Operator.h>
#include <OP/OP_OperatorTable.h>
#include <GA/GA_ElementGroup.h>
#include <GA/GA_ElementGroupTable.h>
#include <ostream>
#include <functional>
#include <algorithm>
#include <string>
#include <vector>
#include <iostream>

Any ideas ?

Thanks.

post-7494-134476836021_thumb.jpg

Link to comment
Share on other sites

Guest mantragora

Actually there is but it's not a public method. I didn't checked this because I assumed that "Iterating Over Groups" example in help is correct. BeginTraverse() did the trick.

Thank you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...