This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: v2 and v3 of libstdc++


On Mon, Jan 27, 2003 at 07:56:11PM +0530, Ajay Bansal wrote:
> 
> I am upgrading from 2.96 version of gcc to 3.2.1 version of gcc. it
> seems that libstdc++ also has gone major changes in the course. 

Yes, like a total rewrite.


> Issue 1. nocreate and noreplace members have been removed from ios class

They are not part of the ISO standard.  As more compiler become more standard-
compliant, you will encounter more problems.  Best to fix your code.

I suggest a good C++ textbook.


> Issue 2. open(const char*&, int&, int) is not a member of fstream class.
> And Second member of the open method of fstream class has to be of type
> ios_base::openmode 

Likewise.

>                 #ifdef __linux
>                 iostrm.open(fileName, (ios_base::openmode)op );
>                 #else
>                 iostrm.open(fileName, op, 0644);
>                 #endif

Better to just define 'op' to be of type openmode to start with.


> Issue 3. filebuf class does not have "fd" as its member function
[..]
> Can somebody please comment on our solutions and suggest us with the
> solution for the 4th.

See the libstdc++ FAQ.



-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]