to_string/to_wstring examples

This commit is contained in:
Marius Bancila 2018-01-23 11:11:14 +02:00 committed by GitHub
parent af754e2110
commit 03ec86bbb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,8 +147,8 @@ Non-member functions `to_string()` and `to_wstring()` return a string with the U
```
uuid id("47183823-2574-4bfd-b411-99ed177d3e43");
assert(id.string() == "47183823-2574-4bfd-b411-99ed177d3e43");
assert(id.wstring() == L"47183823-2574-4bfd-b411-99ed177d3e43");
assert(to_string(id) == "47183823-2574-4bfd-b411-99ed177d3e43");
assert(to_wstring(id) == L"47183823-2574-4bfd-b411-99ed177d3e43");
```
### `operator==` and `operator!=`