Adding 'compound assignment union operator' for folly::WriteFlags enum class
authorMaxim Georgiev <maxgeorg@fb.com>
Wed, 18 Jan 2017 22:30:57 +0000 (14:30 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 18 Jan 2017 22:32:57 +0000 (14:32 -0800)
commit74261e41a1b94490607457e38b3b1c54cf6374a4
tree5ad0e5c1f71ff460fe3292a4d12de16589d0066b
parentfdc5436231f47b9e345e318ddeb7881bf2dead40
Adding 'compound assignment union operator' for folly::WriteFlags enum class

Summary: There is "operator|()" defined for folly::WriteFlags enum class, but no "operator=|()". Because of that adding a new flag to an existing set of flags looks awkward. Adding the missing operator.

Reviewed By: yfeldblum

Differential Revision: D4421892

fbshipit-source-id: a053a8cc5b1d07579c233d19029a9801b8188413
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncTransport.h
folly/io/async/test/WriteFlagsTest.cpp [new file with mode: 0644]