Skip to content

Commit

Permalink
feat: update articles
Browse files Browse the repository at this point in the history
  • Loading branch information
wx-chevalier committed May 29, 2024
1 parent 4da010c commit 08e5590
Show file tree
Hide file tree
Showing 40 changed files with 2 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ unique_ptr<Shape> c(make_triangle()); // okay
以下是如何正确的转移左值:
```c
```cpp
unique_ptr<Shape> a(new Triangle);
unique_ptr<Shape> b(a); // still an error
unique_ptr<Shape> c(std::move(a)); // okay
Expand All @@ -951,7 +951,7 @@ unique_ptr<Shape> c(std::move(a)); // okay

一个例子:

```c
```cpp
class Foo
{
unique_ptr<Shape> member;
Expand Down
Empty file.

0 comments on commit 08e5590

Please sign in to comment.