Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Template trouble




On Aug 28, 2006, at 3:29 PM, Adin Hunter Baber wrote:

typedef int* intptr; // because gcc chokes on directly declaring a reference to a pointer

It does?

[PBG4:~/temp] steve$ cat choke.cc
void f( int *p ) { int* &ref = p; int *q; ref = q; }
[PBG4:~/temp] steve$ g++ -Wall -std=c++98 -c choke.cc
[PBG4:~/temp] steve$

It seems to work for me.

--
Steve Checkoway


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

This email sent to email@hidden
References: 
 >FSRef_fopen alternative (From: "Edward K. Chew" <email@hidden>)
 >Template trouble (From: "Edward K. Chew" <email@hidden>)
 >Re: Template trouble (From: "Edward K. Chew" <email@hidden>)
 >Re: Template trouble (From: Adin Hunter Baber <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.