Link to home
Start Free TrialLog in
Avatar of Robson
RobsonFlag for Poland

asked on

C++ Builder5 exception problem

#include <exception>

class FooException: public exception
{
   FooException() {};
};

And compiler says:

[C++ Error] File1.cpp(4): E2303 Type name expected

What's wrong? Under GCC it went just fine..
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Robson

ASKER

I knew nothing about namespaces before, thanks!

I wonder if this piece of code will compile under GCC now...
>>I wonder if this piece of code will compile under GCC now...

It should - if you have an up-to-date STL version