Handle conversion from float in toDynamic()
authorMarcus Holland-Moritz <mhx@fb.com>
Thu, 7 Jul 2016 08:27:05 +0000 (01:27 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Thu, 7 Jul 2016 08:38:41 +0000 (01:38 -0700)
commite88735c87c71aaffd33d559af6aa1a1247dd253d
tree34cad63266108468bd3403a39edf908db001748f
parentf5a9f91c4906989ed1fb6b478c2488de7fa3b32a
Handle conversion from float in toDynamic()

Summary:
This adds the necessary ConversionHelper to enable float-to-double
conversion when using `toDynamic` on any type that contains `float`.

Fixes the added test case, which previously failed to compile.

Reviewed By: yfeldblum

Differential Revision: D3525942

fbshipit-source-id: d904dde5585316ea9a15e21430e91ac4e33116b9
folly/dynamic-inl.h
folly/test/DynamicConverterTest.cpp