mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
C.181 Fix missing type specifier (#2117)
This commit is contained in:
parent
f2485c56a1
commit
e1b17ec9a5
|
@ -8871,7 +8871,7 @@ The C++17 `variant` type (found in `<variant>`) does that for you:
|
|||
v = 123; // v holds an int
|
||||
int x = get<int>(v);
|
||||
v = 123.456; // v holds a double
|
||||
w = get<double>(v);
|
||||
double w = get<double>(v);
|
||||
|
||||
##### Enforcement
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user