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: Compilation problem on Suse 8.1 with gcc 3.2


"Jean Acheroy" <Jean.Acheroy@curia.eu.int> writes:

| ** High Priority **

No.  See below.

| I have the following code
| //.....
|    fstream  * thefile;
|   unsigned long pktPos;
| //....
|   thefile->rdbuf()->seekpos((streampos) pktPos, ios::in);
                     ^^^^^^^^

This function is defined by the C++ standard as protected.  The
corresponding public equivalent is named pubseekoff

  thefile->rdbuf()->pubseekoff(streambuf::pos_type(pktPos), ios::in)


Maybe this should be a FAQ, it is not the first time this question
pops up.

[...]

| All work fine with gcc 2.xx

The library shipped with 2.xx was not standard conformant.  In
general, you should expect other changes as well.  Please a consult a
reference book -- have a look at our website.

-- Gaby


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