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