Reputation: 35992
I saw the following class definition and cannot figure out the meaning of the line 1.
class Noisy {
public:
Noisy() throw();
~Noisy() throw();
Noisy& operator= (const Noisy&) throw();
Noisy (const Noisy&) throw(); // Line 1
};
What is the meaning of this line and what is the usage of this line?
Thank you
Upvotes: 0
Views: 183
Reputation: 9431
Look at this thread. It will give you some more insight. Should I use an exception specifier in C++?
Upvotes: 0
Reputation: 355297
It isn't a statement. It is a declaration of a copy constructor that is specified as throwing no exceptions.
You can find out more in your favorite good introductory C++ book.
Upvotes: 7