-
November 10th, 2003, 04:32 AM
#1
constrctor
I have a constructor that calls a function that return a value
if the function fails what can I do can I stop constructing the object?
How do I notify the client who created the object that there was a failure?
I mean
Client side:
CMyClass myClass;
and myClass constructor do that:
MyClass::MyClass
(
Init1();
Init2();
}
what if Init1() or Init2() fails??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|