Skip to content

Commit 282629d

Browse files
committed
Add default ctor ability to gc policy's edit
1 parent df6ef46 commit 282629d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

immer/transience/gc_transience_policy.hpp

+2-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ struct gc_transience_policy
3939

4040
struct edit
4141
{
42-
void* v;
43-
edit(void* v_)
44-
: v{v_}
45-
{
46-
}
47-
edit() = delete;
42+
void* v{};
43+
4844
bool operator==(edit x) const { return v == x.v; }
4945
bool operator!=(edit x) const { return v != x.v; }
5046
};

0 commit comments

Comments
 (0)