Skip to content

Commit

Permalink
util: update definition of DISALLOW_COPY_AND_ASSIGN macro
Browse files Browse the repository at this point in the history
PR-URL: #23092
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
nitsakh authored and targos committed Oct 3, 2018
1 parent 1a21cf1 commit f2dfebb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,8 @@ NO_RETURN void Assert(const char* const (*args)[4]);
void DumpBacktrace(FILE* fp);

#define DISALLOW_COPY_AND_ASSIGN(TypeName) \
void operator=(const TypeName&) = delete; \
void operator=(TypeName&&) = delete; \
TypeName(const TypeName&) = delete; \
TypeName(TypeName&&) = delete
TypeName& operator=(const TypeName&) = delete

// Windows 8+ does not like abort() in Release mode
#ifdef _WIN32
Expand Down

0 comments on commit f2dfebb

Please sign in to comment.