public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Hultman, Sten" <sten.hultman@cgey.com>
To: "'gcc-help@gcc.gnu.org'" <gcc-help@gcc.gnu.org>
Subject: What is missing to get this compiled ?
Date: Thu, 17 Jan 2002 04:40:00 -0000	[thread overview]
Message-ID: <AF7653A184F1D511A5AC00B0D0AA5A8564744D@sto02.capgemini.se> (raw)


This sort program compiles with no problem with gcc2.95.2 on HP-UX10.20:

#include <iostream.h>

class isockstream: public istream {
public:
                        isockstream (): ios (0) {}
                        isockstream(streambuf* sb): ios (sb) {}
};


On HP-UX11.00 with gcc3.0.2 I get the following errors.
Could someone please tell me what to include to get it working in the new
environment:

#include <iostream>
using namespace std;

class isockstream: public istream {
public:
                        isockstream (): ios (0) {}
                        isockstream(streambuf* sb): ios (sb) {}
                        
};

sstream.h: In constructor `isockstream::isockstream()':
sstream.h:6: no matching function for call to `std::basic_istream<char,
std::char_traits<char> >::basic_istream()'
/usr/local/include/g++-v3/bits/std_istream.h:209: candidates are: 
   std::basic_istream<_CharT, _Traits>::basic_istream(const 
   std::basic_istream<_CharT, _Traits>&) 
      [with _CharT = char, _Traits = std::char_traits<char>]
/usr/local/include/g++-v3/bits/std_istream.h:72:                 
   std::basic_istream<_CharT,
_Traits>::basic_istream(std::basic_streambuf<_CharT, _Traits>*) 
      [with _CharT = char, _Traits = std::char_traits<char>]


This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

                 reply	other threads:[~2002-01-17 12:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AF7653A184F1D511A5AC00B0D0AA5A8564744D@sto02.capgemini.se \
    --to=sten.hultman@cgey.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).