help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inheriting from exception


From: Marco
Subject: Inheriting from exception
Date: 3 May 2006 03:24:37 -0700
User-agent: G2/0.2

The following code compiles with Microsoft Visual Studio but not with
GNU (version 3.3.3 running on Linux). Is there a way to inhert from
exception in GNU?
Thanks.

#include <iostream>
#include <exception>

class Toto : public exception
{
public:
        virtual const char* what() { return "tutu";}
private:


};

int main()
{

  return 0;
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]