mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Make type safe union docs more clear regarding exceptions.
This commit is contained in:
parent
c6c865ba71
commit
f6c58c2d21
@ -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…
Reference in New Issue
Block a user