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: Class Modeler and STL std::



On Nov 16, 2005, at 4:05 PM, William H. Schultz wrote:

If they are including your header file, then they are including whatever you include.  Just because you say "using namespace std" inside your class declaration shouldn't mean they have to treat your class any differently.  It definitely doesn't mean they have to start programming with STL--as long as you aren't returning STL objects to them.


Hank Schultz
Cedrus Corporation



On Nov 16, 2005, at 1:24 PM, email@hidden wrote:


The class modeler seems to be confused by "std::string variable".  It parses the member name as string and the type as unknown.

Is there a way around this?  I know that "using namespace std" fixes the problem, but I am writing utility classes that will be used by other members of my team and they may not be using STL.  I am using STL in my classes, but I don't want to force them to use STL.

The class modeler, like many other symbolically-driven parts of Xcode (the Project Symbols smartgroup, the Class Browser, Find Definition, and command-doubleclick navigation) is driven off of the project index, and the C++ project indexer does not capture or store namespace information at this time.  Items that are distinguished only by namespace may become confused.

Chris
 _______________________________________________
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: 
 >Class Modeler and STL std:: (From: email@hidden)
 >Re: Class Modeler and STL std:: (From: "William H. Schultz" <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.