Skip to content

Commit 2ee9a94

Browse files
Update docs/standard-library/in-place-t-struct.md
Co-authored-by: Casey Carter <cartec69@gmail.com>
1 parent e40161a commit 2ee9a94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/standard-library/in-place-t-struct.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int main()
8282
std::any a(std::in_place_type<MyStruct>, 314);
8383

8484
// Construct a MyStruct object inside a vector at index 0
85-
std::variant<MyStruct> v(std::in_place_index<0>, MyStruct(271));
85+
std::variant<MyStruct, int> v(std::in_place_index<0>, 271);
8686

8787
if (opt)
8888
{

0 commit comments

Comments
 (0)