Make type safe union docs more clear regarding exceptions.

This commit is contained in:
Davis E. King 2023-08-26 19:55:59 -04:00 committed by GitHub
parent c6c865ba71
commit f6c58c2d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: