Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: Adapting co...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 9579 of 9831
Post > Topic >>

Re: Adapting code for C++98 compliance.

by Mathias Gaunard <loufoque@[EMAIL PROTECTED] > May 8, 2008 at 09:04 AM

On 7 mai, 19:43, James Kuyper <jameskuy...@[EMAIL PROTECTED]
> wrote:

> I have two questions:
>
> 1. Which set of options makes those versions of that compiler come
> closest to fully conforming to the C++98 standard?
>

Personally, I simply use -std=c++98 -Wall -Wextra -pedantic

>
> 2. I own a perfectly legal copy of C++98 standard, which is currently
> stuck on a hard drive that is inaccessible due to hardware failure and
> software installation problems. If I had more practical C++ experience,
> that wouldn't matter, but to fix those old-style cast problems, I need
> to reference the standard, or a good substitute for the standard. What
> is the closest substitute to that version of the standard, that I could
> get access to for free today (which basically means it has to be
> something online)?

There is a version "call for comments" or something like that from
1997 that is freely available.
Also note that the standard was revised in 2003, and that the GCC C+
+98 mode actually tries to comply with that version and not the 1998
one. The differences between those are freely available, too.
However, I don't remember the URLs of those do***ents.

You can also look at the numerous drafts that are being written for
the next C++ standard, C++0x. Those are freely available at open-
std.org.

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 2 Posts in Topic:
Adapting code for C++98 compliance.
James Kuyper <jameskuy  2008-05-07 11:43:28 
Re: Adapting code for C++98 compliance.
Mathias Gaunard <loufo  2008-05-08 09:04:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 3:00:18 CDT 2008.