• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: template types in structs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: template types in structs


  • Subject: Re: template types in structs
  • From: Steve Checkoway <email@hidden>
  • Date: Tue, 31 Oct 2006 03:56:54 -0800


On Oct 30, 2006, at 4:02 PM, Daimen wrote:

Using Xcode 2.2 and gcc 4.0:

Probably not posting enough code to pinpoint the problem, but the syntax on the offending line, seems to offend only when within a struct, so maybe that's an indicator.

CXPInterface IMTS_PropertyList;

struct MtsStatement
{
	uint32 mOpcode;
	CXPRefPtr<IMTS_PropertyList> mArgs; // produces the error below
	boolean	mLs;
};

		error: field 'mArgs' has incomplete type

Indicating perhaps it doesn't know how to handle IMTS_PropertyList...

Does the CXPRefPtr template use its parameter as something other than a pointer or reference? (My guess is it doesn't because of the name.)


Or, depending on where the header is included from:

		expected ';' before '<' token

Indicating perhaps it doesn't know how to handle CXPRefPtr...

In this case, I don't think it knows that CXPRefPtr is a template.

Obviously both are defined via headers included directly, so I'm not really sure what these errors mean.

Whichever header this is in should be including whichever header defines CXPRefPtr. If that template _does_ use its parameter for something other than a pointer or a reference, then you need to include whichever header defines IMTS_PropertyList.


Any ideas? Thanks,

More code would seem to be needed to say for sure.

--
Steve Checkoway



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Find in project problem... <was Re: template types in structs>
      • From: Duncan <email@hidden>
References: 
 >template types in structs (From: Daimen <email@hidden>)

  • Prev by Date: Re: Navigation shortcuts [was: XCode Falls Short - for now]
  • Next by Date: Re: How do I include source files according to processor?
  • Previous by thread: template types in structs
  • Next by thread: Find in project problem... <was Re: template types in structs>
  • Index(es):
    • Date
    • Thread