Make type safe union docs more clear regarding exceptions.

pull/2854/head
Davis E. King 1 year ago committed by GitHub
parent c6c865ba71
commit f6c58c2d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,6 +101,10 @@ namespace dlib
};
type_safe_union<int,std::string> my_type_safe_union; // No error
Finally, note that if the constructor of one of the Types throws when the type
safe union is constructing it then the type safe union will be left in an empty
state. I.e. this->empty() == true.
!*/
public:

Loading…
Cancel
Save