Skip to content

Commit 3deb042

Browse files
committed
Make c_raii non-movable, closes #176
1 parent 29fbd92 commit 3deb042

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

include/cpp2util.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,8 +1097,6 @@ class c_raii {
10971097

10981098
c_raii(c_raii const&) = delete;
10991099
auto operator=(c_raii const&) = delete;
1100-
c_raii(c_raii&& that) noexcept : t {std::move(that.t)}, dtor {that.dtor} { that.dtor = nullptr; }
1101-
auto operator=(c_raii&& that) noexcept { t = std::move(that.t); dtor = that.dtor; that.dtor = nullptr; }
11021100
};
11031101

11041102
inline auto fopen( const char* filename, const char* mode ) {

source/parse.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2486,7 +2486,6 @@ class parser
24862486

24872487

24882488
//G statement:
2489-
//G let parameter-list statement
24902489
//G selection-statement
24912490
//G inspect-expression
24922491
//G return-statement

0 commit comments

Comments
 (0)