Thread overview | |||||
---|---|---|---|---|---|
|
November 08, 2002 DMC's compatibility w/ namespaces | ||||
---|---|---|---|---|
| ||||
Hi, Is DMC at all compatible with any namespace? And if not, how would be STLPort compatible with DMC? Whenever I write the next statement, I get the associated error: using namespace std; ^ MyApp.cpp(16) : Error: identifier expected ..thank you! Daniel Jomphe |
November 08, 2002 Re: DMC's compatibility w/ namespaces | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Jomphe | On Fri, 8 Nov 2002 19:04:51 +0000 (UTC), Daniel Jomphe wrote: > Is DMC at all compatible with any namespace? > And if not, how would be STLPort compatible with DMC? STLport for DM uses something like "#define std", so you can write something like std::string or "using std::string", but you can't write "using namespace std;" > using namespace std; > ^ > MyApp.cpp(16) : Error: identifier expected As these std namespaces are currently ignored anyway, you could enclose it in an "#ifndef __DMC__" until DM gets proper namespace support. bye, Christof -- http://cmeerw.org JID: cmeerw@jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net? |
November 08, 2002 Re: DMC's compatibility w/ namespaces | ||||
---|---|---|---|---|
| ||||
Posted in reply to Christof Meerwald | >> Is DMC at all compatible with any namespace?
>> And if not, how would be STLPort compatible with DMC?
>
>STLport for DM uses something like "#define std", so you can write something like std::string or "using std::string", but you can't write "using namespace std;"
>
>> using namespace std;
>> ^
>> MyApp.cpp(16) : Error: identifier expected
>
>As these std namespaces are currently ignored anyway, you could enclose it in an "#ifndef __DMC__" until DM gets proper namespace support.
Thank you very much.
|
Copyright © 1999-2021 by the D Language Foundation