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: using namespace in xcode and dev-c++




On Mar 30, 2006, at 9:23 AM, Jeffery Shipman wrote:

In Dev-C++ you may put the following in a .h or .cpp file

#include "globalstuff.h"
using namespace globalstuff.h;

In the associated header is the following

#include <cstdlib>
#include <iostream>...

namspace globalstuff
{
#include "node.h"
#include "node.cpp" ..
}

"globalstuff.h" is not a qualified namespace id. Consult the C++ standard, I think section 2.10 is where they discuss legal identifiers. If that practice worked in dev-c++, it is a hack and probably not portable.


Sam Miller
Graduate Research Assistant
Department of Electrical and Computer Engineering
Iowa State University
312 Wilhelm Hall
Ames Laboratory (515) 294-2148
Ames, IA - 50011 email@hidden
http://www.scl.ameslab.gov/~samm/

_______________________________________________
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: 
 >using namespace in xcode and dev-c++ (From: Jeffery Shipman <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.