delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/23/04:12:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20020423081049.8981.qmail@web14510.mail.yahoo.com>
Date: Tue, 23 Apr 2002 18:10:49 +1000 (EST)
From: =?iso-8859-1?q?Danny=20Smith?= <danny_r_smith_2001 AT yahoo DOT co DOT nz>
Subject: RE: c++ char exceptions
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

Robert wrote:
>
> I don't know if this is a cygwin issue or if I am doing something
> fundamentally wrong...
>

You threw const char*

int
main (int argc, char **argv)
{
  try
    {
      throw "catch this";
    }
  catch (const char *message) 
//       ^^^^^ 
    {
      return 1;
    }
  return 0;
}

>

http://messenger.yahoo.com.au - Yahoo! Messenger
- A great way to communicate long-distance for FREE!

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019