[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-cxx-dev
Subject: Re: CXX-DEV: getting error
From: Dennis Handly <dhandly () cup ! hp ! com>
Date: 2000-12-07 13:32:55
[Download RAW message or body]
>I have programs that compile on Sun Solaris with GNU.
You should see if it compiles with "strict" mode, or gives a better message.
This is illegal code.
Error 366: "socket_reader.cc", line 159 # Cannot have two initializers for a
default argument.
CSocketReader::CSocketReader(int max_msg_size = 500) throw(CError)
class CSocketReader {
CSocketReader(int buf_size = 500) throw (CError);
You can't have a default argument in the .cc if you have it in the .h.
Which means you never put it into the .cc/.C, unless you put it in comments.
_________________________________________________________________
To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
with the message UNSUBSCRIBE cxx-dev
_________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic