use std::underlying_type to support enum classes
Summary: Noticed these TODOs in Conv.h and decided to fix them. Discovered that the underlying_type implementation also covers enum classes, which didn't work with the pre-existing code. Test Plan: fbconfig -r folly --platform=gcc-4.7.1-glibc-2.14.1-fb fbmake dbg _bin/folly/test/conv_test _bin/folly/test/conv_test --platform=gcc-4.6.2-glibc-2.13 fbmake dbg _bin/folly/test/conv_test _bin/folly/test/conv_test Reviewed By: tudorb@fb.com FB internal diff: D634309
Showing
Please register or sign in to comment