Some fixes for custom conversions of enums
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 30 Nov 2017 06:13:39 +0000 (22:13 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 30 Nov 2017 06:23:07 +0000 (22:23 -0800)
commit96ac8f8ff0c9bc9446eede119fdfee0fe7feaba3
tree0a8677a1233b0b6627875fa706194ccb033a0b5c
parent644a73aada5984d2c125d505a21a00174ba4f185
Some fixes for custom conversions of enums

Summary:
[Folly] Some fixes for custom conversions of enums.

Of note, `to` was defined for enum -> all conversions, including enum -> string conversions, but we actually want enum -> string conversions to be done via ADL-discovered toAppend.

Reviewed By: ot

Differential Revision: D6411250

fbshipit-source-id: 852b64309e6adf1c68e5153635cb29632e2d86d4
folly/Conv.h
folly/test/ConvTest.cpp