Skip to content

Commit e40161a

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

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
@@ -79,7 +79,7 @@ int main()
7979
std::optional<MyStruct> opt(std::in_place, 42);
8080

8181
// Construct a MyStruct object inside an any object
82-
std::any a(std::in_place_type<MyStruct>, MyStruct(314));
82+
std::any a(std::in_place_type<MyStruct>, 314);
8383

8484
// Construct a MyStruct object inside a vector at index 0
8585
std::variant<MyStruct> v(std::in_place_index<0>, MyStruct(271));

0 commit comments

Comments
 (0)