We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fc594f commit ceaac86Copy full SHA for ceaac86
1 file changed
documents/vol2-modern-features/ch04-type-safety/03-variant.md
@@ -432,7 +432,7 @@ struct UnaryExpr {
432
```cpp
433
std::cout << "sizeof(variant<int, double, string>): "
434
<< sizeof(std::variant<int, double, std::string>) << "\n";
435
-// 典型输出:32(64 位平台上,string 占 32 字节,int 和 double 各 8 字节)
+// 典型输出:40(64 位平台上,string 占 32 字节,int 占 4 字节, double 占 8 字节)
436
std::cout << "sizeof(string): " << sizeof(std::string) << "\n";
437
// 典型输出:32
438
```
0 commit comments