Use deleted functions to disallow copying #9

Closed
jwakely opened this Issue May 27, 2012 · 2 comments

Projects

None yet

2 participants

@jwakely
Contributor
jwakely commented May 27, 2012

As a C++11 project it would be better to use deleted copy constructors and copy assignment operators instead of the current DISALLOW_COPY_AND_ASSIGN macro.

Would a patch to change the macro (or just to declare deleted functions directly in the classes) be accepted?

Owner

I would gladly accept a patch.

@jwakely jwakely closed this Jul 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment